[]
        
(Showing Draft Content)

C1.Web.Api.Storage.StorageProviderManager

StorageProviderManager Class

This manager mantains multiple IStorageProvider.

Inheritance
StorageProviderManager
Namespace: C1.Web.Api.Storage
Assembly: C1.Web.Api.dll
Syntax
public sealed class StorageProviderManager : Manager<IStorageProvider>
Remarks

If add an IStorageProvider with empty string key, this IStorageProvider will be treated as the default provider. When no macthed provider are found, the default provider will be used to get the storage.

Properties

Name Description
Current

Gets the StorageProviderManager instance.

Methods

Name Description
GetDirectoryStorage(string, NameValueCollection)

Gets the IDirectoryStorage with specified path and arguments.

GetFileStorage(string, NameValueCollection)

Gets the IFileStorage with specified path and arguments.

GetProvider(string, out string, out string)

Gets the IStorageProvider with the specified path.

Extension Methods