Class Config
Assembly: Acoustics.Shared.dll
Syntax
public class Config : IConfig
Constructors
|
Improve this Doc
View Source
Config()
Declaration
Properties
|
Improve this Doc
View Source
ConfigDirectory
Declaration
public string ConfigDirectory { get; }
Property Value
|
Improve this Doc
View Source
ConfigPath
Declaration
public string ConfigPath { get; set; }
Property Value
|
Improve this Doc
View Source
GenericConfig
Gets or sets the generic object graph that mirrors the configuration.
This object is ignored for JSON serialization in log dumping if
the current Type is exactly this type (not an inherited child).
Declaration
public object GenericConfig { get; set; }
Property Value
|
Improve this Doc
View Source
Item[String]
Declaration
public string this[string key] { get; }
Parameters
Type |
Name |
Description |
String |
key |
|
Property Value
Methods
|
Improve this Doc
View Source
GetBool(String)
Declaration
public bool GetBool(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
|
Improve this Doc
View Source
GetBoolOrNull(String)
Declaration
public bool? GetBoolOrNull(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
|
Improve this Doc
View Source
GetDouble(String)
Declaration
public double GetDouble(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
|
Improve this Doc
View Source
GetDoubleOrNull(String)
Declaration
public double? GetDoubleOrNull(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
|
Improve this Doc
View Source
GetInt(String)
Declaration
public int GetInt(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
|
Improve this Doc
View Source
GetIntOrNull(String)
Declaration
public int? GetIntOrNull(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
|
Improve this Doc
View Source
GetString(String)
Declaration
public string GetString(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
|
Improve this Doc
View Source
GetStringOrNull(String)
Declaration
public string GetStringOrNull(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
|
Improve this Doc
View Source
GetTimeSpan(String)
Declaration
public TimeSpan GetTimeSpan(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
|
Improve this Doc
View Source
GetTimeSpanOrNull(String)
Declaration
public TimeSpan? GetTimeSpanOrNull(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
|
Improve this Doc
View Source
ToDictionary()
Declaration
[Obsolete("Any code that depends on this is way out of date!")]
public Dictionary<string, string> ToDictionary()
Returns
|
Improve this Doc
View Source
TryGetBool(String, out Boolean)
Declaration
public bool TryGetBool(string path, out bool value)
Parameters
Returns
|
Improve this Doc
View Source
TryGetDouble(String, out Double)
Declaration
public bool TryGetDouble(string path, out double value)
Parameters
Returns
|
Improve this Doc
View Source
TryGetEnum<T>(String, out T)
Declaration
public bool TryGetEnum<T>(string path, out T value)
where T : struct
Parameters
Type |
Name |
Description |
String |
path |
|
T |
value |
|
Returns
Type Parameters
|
Improve this Doc
View Source
TryGetInt(String, out Int32)
Declaration
public bool TryGetInt(string path, out int value)
Parameters
Returns
|
Improve this Doc
View Source
TryGetString(String, out String)
Declaration
public bool TryGetString(string path, out string value)
Parameters
Returns
|
Improve this Doc
View Source
TryGetTimeSpan(String, out TimeSpan)
Declaration
public bool TryGetTimeSpan(string path, out TimeSpan value)
Parameters
Returns
Events
|
Improve this Doc
View Source
Loaded
Declaration
public event Action<IConfig> Loaded
Event Type
Explicit Interface Implementations
|
Improve this Doc
View Source
IConfig.InvokeLoaded()
Declaration
void IConfig.InvokeLoaded()
Implements
Extension Methods