Table of Contents

Class AppConfigWrapper

Namespace
Sportradar.LiveData.Sdk.Services.SdkConfiguration.ConfigFactory
Assembly
Sportradar.LiveData.Sdk.dll

Problem is that users cache the ISdkConfiguration instance they get, and app.config is a bit awkward as a new instance has to be obtained all the time using GetSection().

This is a wrapper so that the underlying section can change, but the client has just this instance cached.

public class AppConfigWrapper : ISdkConfiguration
Inheritance
AppConfigWrapper
Implements
Inherited Members

Constructors

AppConfigWrapper(SdkConfigurationSection)

public AppConfigWrapper(SdkConfigurationSection section)

Parameters

section SdkConfigurationSection

Methods

Reload(SdkConfigurationSection)

public void Reload(SdkConfigurationSection section)

Parameters

section SdkConfigurationSection

Events

OnConfigurationReloaded

Event fired every time that configuration is reloaded / refreshed and might have changed. This is a good time for components to update their cached configuration settings, if any.

public event SdkConfigurationDelegates.ConfigReloadedDelegate OnConfigurationReloaded

Event Type

SdkConfigurationDelegates.ConfigReloadedDelegate