Class LocalUserImagesProvider
Inheritance
System.Object
LocalUserImagesProvider
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Aurigma.DesignAtoms.Services
Assembly: Aurigma.DesignAtoms.dll
Syntax
public class LocalUserImagesProvider : IUserImagesProvider
Constructors
LocalUserImagesProvider(IMetadataService, IApplicationEnvironment, String)
Declaration
public LocalUserImagesProvider(IMetadataService metadataService, IApplicationEnvironment applicationEnvironment, string rootPath = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IMetadataService | metadataService | |
| IApplicationEnvironment | applicationEnvironment | |
| System.String | rootPath |
Methods
GetMetadata(String, String)
Declaration
public Task<ImageMetaData> GetMetadata(string source, string userId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | source | |
| System.String | userId |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<ImageMetaData> |
GetStream(String, String)
Declaration
public Task<Stream> GetStream(string source, string userId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | source | |
| System.String | userId |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<System.IO.Stream> |
IsExists(String, String)
Declaration
public Task<bool> IsExists(string source, string userId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | source | |
| System.String | userId |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<System.Boolean> |