Class StorageManagerAttribute
An attribute to be marked against any IStorageService implementation so the system knows how to configure them from the StorageType config setting
If this attribute is not marked against the implementation the system can not use it from the StorageServiceFactory and can not be configrued to use it from the config settings
The system provided storage managers have keys of Azure and Local.Inherited Members
Namespace: LemonEdge.API.Core.Storage
Assembly: LemonEdge.API.dll
Syntax
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public class StorageManagerAttribute : Attribute
Constructors
StorageManagerAttribute(string, string)
Marks this IStorageService implementation with details of how it can be used in the system
Declaration
public StorageManagerAttribute(string key, string name)
Parameters
Type | Name | Description |
---|---|---|
string | key | The unique key this storage type can be referred to with. This is the key that can be placed in StorageType config setting for the system to use this implementation |
string | name | The user friendly name for this storage service |
Properties
Key
The unique key this storage type can be referred to with. This is the key that can be placed in StorageType config setting for the system to use this implementation
Declaration
public string Key { get; }
Property Value
Type | Description |
---|---|
string |
Name
The user friendly name for this storage service
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |