Interface IConfigurationBuilderBase<T>
- Namespace
- Sportradar.OddsFeed.SDK.Api.Config
- Assembly
- Sportradar.OddsFeed.SDK.dll
A base contract custom and general configuration builders
public interface IConfigurationBuilderBase<out T>
Type Parameters
TThe type of the builder extending the interface
Methods
Build()
Builds and returns a IUofConfiguration instance
IUofConfiguration Build()
Returns
- IUofConfiguration
The constructed IUofConfiguration instance
LoadFromConfigFile()
Sets the general configuration properties to values read from configuration file. Only value which can be set through IConfigurationBuilderBase<T> methods are set. Any values already set by methods on the current instance are overridden
T LoadFromConfigFile()
Returns
- T
A IConfigurationBuilderBase<T> derived instance used to set general configuration properties
SetDefaultLanguage(CultureInfo)
Sets the default language in which translatable data is available
T SetDefaultLanguage(CultureInfo culture)
Parameters
cultureCultureInfoA default language in which translatable data should be available
Returns
- T
A IConfigurationBuilderBase<T> derived instance used to set general configuration properties
SetDesiredLanguages(IEnumerable<CultureInfo>)
Sets the languages in which translatable data is available
T SetDesiredLanguages(IEnumerable<CultureInfo> cultures)
Parameters
culturesIEnumerable<CultureInfo>A IEnumerable<T> specifying languages in which translatable data should be available
Returns
- T
A IConfigurationBuilderBase<T> derived instance used to set general configuration properties
SetDisabledProducers(IEnumerable<int>)
Specifies the producers which should be disabled (i.e. no recovery, ...)
T SetDisabledProducers(IEnumerable<int> producerIds)
Parameters
producerIdsIEnumerable<int>The list of producer ids specifying the producers which should be disabled
Returns
- T
A IRecoveryConfigurationBuilder<T> derived instance used to set general configuration properties
SetExceptionHandlingStrategy(ExceptionHandlingStrategy)
Sets the value specifying how exceptions thrown in the SDK are handled.
T SetExceptionHandlingStrategy(ExceptionHandlingStrategy strategy)
Parameters
strategyExceptionHandlingStrategyA ExceptionHandlingStrategy enum specifying how exceptions thrown in the SDK are handled
Returns
- T
A IConfigurationBuilderBase<T> derived instance used to set general configuration properties
SetNodeId(int)
Sets the node id used to separate between SDK instances associated with the same account
T SetNodeId(int nodeId)
Parameters
nodeIdintThe node id to be set
Returns
- T
A IConfigurationBuilderBase<T> derived instance used to set general configuration properties
Remarks
MTS customer must set this value! Use only positive numbers; negative are reserved for internal use. Each sdk instance should use unique id.