StorageOptions

Namespace: Proffer.Storage.Configuration

The Proffer.Storage options with providers and stores.

public class StorageOptions : IParsedOptions`3

Inheritance ObjectStorageOptions
Implements IParsedOptions<ProviderOptions, StoreOptions, ScopedStoreOptions>

Fields

DefaultConfigurationSectionName

The default configuration section name.

public static string DefaultConfigurationSectionName;

Properties

Name

Gets the name.

public string Name { get; }

Property Value

String

Providers

Gets or sets the providers unparsed options.

public IReadOnlyDictionary<string, IConfigurationSection> Providers { get; set; }

Property Value

IReadOnlyDictionary<String, IConfigurationSection>

Stores

Gets or sets the stores unparsed options.

public IReadOnlyDictionary<string, IConfigurationSection> Stores { get; set; }

Property Value

IReadOnlyDictionary<String, IConfigurationSection>

ScopedStores

Gets or sets the scoped stores unparsed options.

public IReadOnlyDictionary<string, IConfigurationSection> ScopedStores { get; set; }

Property Value

IReadOnlyDictionary<String, IConfigurationSection>

ConnectionStrings

Gets or sets the connection strings.

public IReadOnlyDictionary<string, string> ConnectionStrings { get; set; }

Property Value

IReadOnlyDictionary<String, String>

ParsedProviders

Gets or sets the parsed provider instances options.

public IReadOnlyDictionary<string, ProviderOptions> ParsedProviders { get; set; }

Property Value

IReadOnlyDictionary<String, ProviderOptions>

ParsedStores

Gets or sets the parsed stores options.

public IReadOnlyDictionary<string, StoreOptions> ParsedStores { get; set; }

Property Value

IReadOnlyDictionary<String, StoreOptions>

ParsedScopedStores

Gets or sets the parsed scoped stores options.

public IReadOnlyDictionary<string, ScopedStoreOptions> ParsedScopedStores { get; set; }

Property Value

IReadOnlyDictionary<String, ScopedStoreOptions>

Constructors

StorageOptions()

Initializes a new instance of the StorageOptions class.

public StorageOptions()

Methods

BindProviderOptions(ProviderOptions)

Binds the provider instance options.

public void BindProviderOptions(ProviderOptions providerInstanceOptions)

Parameters

providerInstanceOptions ProviderOptions
The provider instance options.

BindStoreOptions(StoreOptions, ProviderOptions)

Binds the store options.

public void BindStoreOptions(StoreOptions storeOptions, ProviderOptions providerInstanceOptions)

Parameters

storeOptions StoreOptions
The store options.

providerInstanceOptions ProviderOptions
The provider instance options.