Class AppConfigFactory
- Assembly
- Sportradar.LiveData.Sdk.dll
Configuration factory that understands app.config file format. It is focused only on specific section of the configuration file (i.e. section reserved for SDK) and is able to detect changes of the configuration in run-time.
public class AppConfigFactory : IConfigFactory
- Inheritance
-
AppConfigFactory
- Implements
- Inherited Members
Constructors
AppConfigFactory(string, bool)
protected AppConfigFactory(string section_name, bool watch)
Parameters
Fields
DEFAULT_SECTION_NAME
Default section name in app.config when not specified otherwise.
public const string DEFAULT_SECTION_NAME = "Sdk"
Field Value
RELOAD_TIME
protected static readonly TimeSpan RELOAD_TIME
Field Value
m_config
protected AppConfigWrapper m_config
Field Value
Methods
BuildConfig()
Assemble a configuration.
public virtual ISdkConfiguration BuildConfig()
Returns
- ISdkConfiguration
A usuable configuration.
ConfigChanged(object, FileSystemEventArgs)
protected virtual void ConfigChanged(object sender, FileSystemEventArgs e)
Parameters
senderobjecteFileSystemEventArgs
FromSection(string)
Create a configuration factory that uses a certain section of the app.config file.
public static AppConfigFactory FromSection(string section_name = "Sdk")
Parameters
section_namestringName of the section.
Returns
- AppConfigFactory
The factory.