Table of Contents

Class AppConfigFactory

Namespace
Sportradar.LiveData.Sdk.Services.SdkConfiguration.ConfigFactory
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

section_name string
watch bool

Fields

DEFAULT_SECTION_NAME

Default section name in app.config when not specified otherwise.

public const string DEFAULT_SECTION_NAME = "Sdk"

Field Value

string

RELOAD_TIME

protected static readonly TimeSpan RELOAD_TIME

Field Value

TimeSpan

m_config

protected AppConfigWrapper m_config

Field Value

AppConfigWrapper

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

sender object
e FileSystemEventArgs

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_name string

Name of the section.

Returns

AppConfigFactory

The factory.