C# Класс Stumps.Server.Data.ConfigurationDataAccess

A class that provides an implementation of T:Stumps.Server.Data.IConfigurationDataAccess that uses a JSON file to configuration information.
Наследование: IConfigurationDataAccess
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ConfigurationDataAccess ( string configurationFile ) : System

Initializes a new instance of the T:Stumps.Server.Data.ConfigurationDataAccess class.

EnsureConfigurationIsInitialized ( System.Action configureDefaultsAction ) : void

Ensures the configuration is correctly initialized.

LoadConfiguration ( ) : ConfigurationEntity

Loads the T:Stumps.Server.Data.ConfigurationEntity from the data store.

SaveConfiguration ( ConfigurationEntity value ) : void

Persists the specified T:Stumps.Server.Data.ConfigurationEntity to the data store.

Описание методов

ConfigurationDataAccess() публичный Метод

Initializes a new instance of the T:Stumps.Server.Data.ConfigurationDataAccess class.
is null.
public ConfigurationDataAccess ( string configurationFile ) : System
configurationFile string The path to the file containing configuration information in JSON format.
Результат System

EnsureConfigurationIsInitialized() публичный Метод

Ensures the configuration is correctly initialized.
public EnsureConfigurationIsInitialized ( System.Action configureDefaultsAction ) : void
configureDefaultsAction System.Action The action to execute after preparing the data access.
Результат void

LoadConfiguration() публичный Метод

Loads the T:Stumps.Server.Data.ConfigurationEntity from the data store.
public LoadConfiguration ( ) : ConfigurationEntity
Результат ConfigurationEntity

SaveConfiguration() публичный Метод

Persists the specified T:Stumps.Server.Data.ConfigurationEntity to the data store.
is null.
public SaveConfiguration ( ConfigurationEntity value ) : void
value ConfigurationEntity The to persist in the store.
Результат void