C# Class Stumps.Server.StumpsConfiguration

A class that represents the configuration used for the Stumps server.
显示文件 Open project: Cayan-LLC/stumps Class Usage Examples

Public Methods

Method Description
LoadConfiguration ( ) : void

Loads the configuration from the data store.

SaveConfiguration ( ) : void

Saves the configuration to the data store.

StumpsConfiguration ( IConfigurationDataAccess dataAccess ) : System

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

ValidateConfigurationSettings ( ) : bool

Validates the configuration settings are correct.

Private Methods

Method Description
CreateDefaultConfigurationEntity ( ) : ConfigurationEntity

Creates a default configuration entity.

DirectoryIsValid ( string directoryPath ) : bool

Validates that the given directory is valid and exists.

Method Details

LoadConfiguration() public method

Loads the configuration from the data store.
public LoadConfiguration ( ) : void
return void

SaveConfiguration() public method

Saves the configuration to the data store.
public SaveConfiguration ( ) : void
return void

StumpsConfiguration() public method

Initializes a new instance of the T:Stumps.Server.StumpsConfiguration class.
is null.
public StumpsConfiguration ( IConfigurationDataAccess dataAccess ) : System
dataAccess IConfigurationDataAccess The data access.
return System

ValidateConfigurationSettings() public method

Validates the configuration settings are correct.
public ValidateConfigurationSettings ( ) : bool
return bool