Class StorageManagerAttribute
An attribute to be marked against any IStorageManager 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 StorageManagerFactory and can not be configrued to use it from the config settings
The system provided storage managers have keys of Azure and Local.Inheritance
Inherited Members
Namespace: LemonEdge.API.Storage
Assembly: API.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public class StorageManagerAttribute : Attribute
Constructors
StorageManagerAttribute(String, String)
Marks this IStorageManager implementation with details of how it can be used in the system
Declaration
public StorageManagerAttribute(string key, string name)
Parameters
Type | Name | Description |
---|---|---|
System.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 |
System.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 |
---|---|
System.String |
Name
The user friendly name for this storage service
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |