StoreOptions

Namespace: Proffer.Storage.Configuration

Generic options for an IStore.

public class StoreOptions : IStoreOptions, Proffer.Configuration.INamedElementOptions

Inheritance ObjectStoreOptions
Implements IStoreOptions, INamedElementOptions

Properties

Name

Gets or sets the name.

public string Name { get; set; }

Property Value

String

ProviderName

Gets or sets the name of the provider.

public string ProviderName { get; set; }

Property Value

String

ProviderType

Gets or sets the type of the provider.

public string ProviderType { get; set; }

Property Value

String

AccessLevel

Gets or sets the access level.

public AccessLevel AccessLevel { get; set; }

Property Value

AccessLevel

FolderName

Gets or sets the name of the folder.

public string FolderName { get; set; }

Property Value

String

Constructors

StoreOptions()

public StoreOptions()

Methods

Validate(Boolean)

Validates the options.

public IEnumerable<IOptionError> Validate(bool throwOnError)

Parameters

throwOnError Boolean
If set to true, throws an exception when the validation fails with any .

Returns

IEnumerable<IOptionError>

        The  returned by the validation, if any.

Exceptions

BadStoreConfiguration

PushMissingPropertyError(List<OptionError>, String)

Pushes a missing property Proffer.Configuration.IOptionError to the list or errors.

protected void PushMissingPropertyError(List<OptionError> optionErrors, string propertyName)

Parameters

optionErrors List<OptionError>
The option errors.

propertyName String
The name of the missing property.