IStorageProvider

Namespace: Proffer.Storage

A provider handles and builds file stores pointing on a particular storage system location.

public interface IStorageProvider

Properties

Name

Gets the name of this provider.

public abstract string Name { get; }

Property Value

String

Methods

BuildStore(String)

Builds a store from configured options.

IStore BuildStore(string storeName)

Parameters

storeName String
The name of the store.

Returns

IStore

        A configured .

Exceptions

StoreNotFoundException

BuildStore(String, IStoreOptions)

Builds a store with specific options.

IStore BuildStore(string storeName, IStoreOptions storeOptions)

Parameters

storeName String
The name of the store.

storeOptions IStoreOptions
The store options.

Returns

IStore

        A configured .

BuildScopedStore(String, Object[])

Builds a scoped store from configured options.

IStore BuildScopedStore(string storeName, Object[] args)

Parameters

storeName String
The name of the store.

args Object[]
The arguments to apply to the scoped store name format.

Returns

IStore

        A configured .

Exceptions

StoreNotFoundException

BadScopedStoreConfiguration