C# Class GuaranteedRate.Sextant.Config.IniConfig

IniConfig is a simple config class that expects data in the old .INI format: [key]=[value]\n Lines starting with # will be treated as comments Empty lines will be ignored.
Inheritance: IEncompassConfig
显示文件 Open project: Guaranteed-Rate/GuaranteedRate.Sextant

Public Methods

Method Description
GetConfigGroup ( string key ) : IEncompassConfig

Do not use. Always returns null in the iniConfig impllementation

GetKeys ( ) : ICollection
GetValue ( string value, bool defaultValue ) : bool
GetValue ( string key, string defaultVal = null ) : string
IniConfig ( string filename ) : EllieMae.Encompass.BusinessObjects
Init ( Session session ) : bool
Init ( string configAsString ) : bool

Loads the config from teh given string

Reload ( Session session ) : bool

Private Methods

Method Description
DoLoad ( Session session ) : bool

Method Details

GetConfigGroup() public method

Do not use. Always returns null in the iniConfig impllementation
public GetConfigGroup ( string key ) : IEncompassConfig
key string
return IEncompassConfig

GetKeys() public method

public GetKeys ( ) : ICollection
return ICollection

GetValue() public method

public GetValue ( string value, bool defaultValue ) : bool
value string
defaultValue bool
return bool

GetValue() public method

public GetValue ( string key, string defaultVal = null ) : string
key string
defaultVal string
return string

IniConfig() public method

public IniConfig ( string filename ) : EllieMae.Encompass.BusinessObjects
filename string
return EllieMae.Encompass.BusinessObjects

Init() public method

public Init ( Session session ) : bool
session Session
return bool

Init() public method

Loads the config from teh given string
public Init ( string configAsString ) : bool
configAsString string The ASCII-encoded string
return bool

Reload() public method

public Reload ( Session session ) : bool
session Session
return bool