C# Class WizardWrx.Core.UnconfiguredDLLSettings

Organize the DLL configuration values that were omitted from the associated configuration file. Since multiple classes can and do share a DLL configuration file, this class must be a Singleton.
Inheritance: GenericSingletonBase
Mostrar archivo Open project: txwizard/WizardWrx_NET_API Class Usage Examples

Public Methods

Method Description
Add ( string configFileName, string propName, string propValue ) : void

Add a new unconfigured setting.

GetMissingPropsForFile ( string pstrConfigFileName ) : List

Return the list of parameters that are missing from the specified configuration file.

GetTheSingleInstance ( ) : UnconfiguredDLLSettings

Return a reference to the single instance after initializing it if needed.

Initializing the dictionary is handled by the private instance constructor.

Private Methods

Method Description
UnconfiguredDLLSettings ( ) : System

Singletons keep ALL their constructors private.

Method Details

Add() public method

Add a new unconfigured setting.
public Add ( string configFileName, string propName, string propValue ) : void
configFileName string /// Identify the affected configuration file. ///
propName string /// Identify the name of the missing property. ///
propValue string /// Recird its default value. ///
return void

GetMissingPropsForFile() public method

Return the list of parameters that are missing from the specified configuration file.
public GetMissingPropsForFile ( string pstrConfigFileName ) : List
pstrConfigFileName string /// Specify the name of the file for which the list is wanted. ///
return List

GetTheSingleInstance() public static method

Return a reference to the single instance after initializing it if needed.
Initializing the dictionary is handled by the private instance constructor.
public static GetTheSingleInstance ( ) : UnconfiguredDLLSettings
return UnconfiguredDLLSettings