Class SdkConfigurationCommon
- Namespace
- Sportradar.LiveData.Sdk.Services.SdkConfiguration.Sections
- Assembly
- Sportradar.LiveData.Sdk.dll
public class SdkConfigurationCommon : ConfigurationElement
- Inheritance
-
SdkConfigurationCommon
- Inherited Members
Constructors
SdkConfigurationCommon()
protected SdkConfigurationCommon()
Properties
BookmakerId
Bookmaker id
[ConfigurationProperty("BookmakerId")]
[DynamicConfigItem]
[IntegerValidator]
public int BookmakerId { get; protected set; }
Property Value
ConfigLogLevel
Specifies log level threshold used while logging configuration settings used by client (server and local). Possible values are: Debug, Info, Warn, Error, Fatal
[ConfigurationProperty("ConfigLogLevel", IsRequired = false, DefaultValue = "Info")]
[DynamicConfigItem]
[TypeConverter(typeof(LevelTypeConverter))]
public Level ConfigLogLevel { get; protected set; }
Property Value
- Level
ExecutionLogLevel
Specifies log level threshold used while logging SDK library code execution. Possible values are: Debug, Info, Warn, Error, Fatal
[ConfigurationProperty("ExecutionLogLevel", IsRequired = false, DefaultValue = "Info")]
[DynamicConfigItem]
[TypeConverter(typeof(LevelTypeConverter))]
public Level ExecutionLogLevel { get; protected set; }
Property Value
- Level
LogPath
Root path where SDK logs will be stored (relative or absolute).
[ConfigurationProperty("LogPath", IsRequired = false, DefaultValue = "logs")]
public string LogPath { get; protected set; }
Property Value
Logging
Indicates whether SDK logging should be enabled
[ConfigurationProperty("Logging", IsRequired = false, DefaultValue = true)]
public bool Logging { get; protected set; }
Property Value
Remarks
If this is set to false we will be unable to help you with any SDK problems
MaxSizeRollBackups
A property that would be applied to all RollingFileAppender in SDK logs.
[ConfigurationProperty("MaxSizeRollBackups", IsRequired = false, DefaultValue = 150)]
public int MaxSizeRollBackups { get; protected set; }
Property Value
MaxThreadPoolThreads
Maximum number of thread pool threads
[ConfigurationProperty("MaxThreadPoolThreads", IsRequired = false, DefaultValue = 512)]
[DynamicConfigItem]
[IntegerValidator(MinValue = 0, MaxValue = 32767)]
public int MaxThreadPoolThreads { get; protected set; }
Property Value
MaximumFileSize
A property that would be applied to all RollingFileAppender in SDK logs.
[ConfigurationProperty("MaximumFileSize", IsRequired = false, DefaultValue = "10MB")]
public string MaximumFileSize { get; protected set; }
Property Value
OldLogCleanupInterval
Old log clean-up interval.
[ConfigurationProperty("OldLogCleanupInterval", IsRequired = false, DefaultValue = "01:00:00")]
[DynamicConfigItem]
[TypeConverter(typeof(TimeSpanConverter))]
[PositiveTimeSpanValidator]
public TimeSpan OldLogCleanupInterval { get; protected set; }
Property Value
Remarks
How often the clean up task is invoked.
OldLogMaxAge
Old log max-age.
[ConfigurationProperty("OldLogMaxAge", IsRequired = false, DefaultValue = "7.00:00:00")]
[DynamicConfigItem]
[TypeConverter(typeof(TimeSpanConverter))]
public TimeSpan OldLogMaxAge { get; protected set; }
Property Value
Remarks
Log files with a modified time older than that will be removed.
QueueHighWatermark
High watermark for all limited priority queue instances (number of items). Signals that a queue will soon reach its full capacity and that we should probably stop processing incoming messages until things calm down a bit.
[ConfigurationProperty("QueueHighWatermark", IsRequired = false, DefaultValue = 9000)]
[DynamicConfigItem]
[IntegerValidator(MinValue = 2, MaxValue = 100000)]
public int QueueHighWatermark { get; protected set; }
Property Value
QueueLowWatermark
Low watermark for all limited priority queue instances (number of items). Signals that a queue is getting filled up and that client may experience some additional latency in msg delivery.
[ConfigurationProperty("QueueLowWatermark", IsRequired = false, DefaultValue = 500)]
[DynamicConfigItem]
[IntegerValidator(MinValue = 2, MaxValue = 100000)]
public int QueueLowWatermark { get; protected set; }
Property Value
QueueMaxCapacity
Capacity (max. number of items) that can be stored in any limited priority queue instance.
[ConfigurationProperty("QueueMaxCapacity", IsRequired = false, DefaultValue = 10000)]
[DynamicConfigItem]
[IntegerValidator(MinValue = 100, MaxValue = 100000)]
public int QueueMaxCapacity { get; protected set; }
Property Value
SafeMode
Indicates whether "safe-mode" SDK components are used instead of normal ones.
[ConfigurationProperty("SafeMode", IsRequired = false, DefaultValue = false)]
public bool SafeMode { get; protected set; }
Property Value
StatsLogLevel
Specifies log level threshold used while logging SDK statistics. Possible values are: Debug, Info, Warn, Error, Fatal
[ConfigurationProperty("StatsLogLevel", IsRequired = false, DefaultValue = "Debug")]
[DynamicConfigItem]
[TypeConverter(typeof(LevelTypeConverter))]
public Level StatsLogLevel { get; protected set; }
Property Value
- Level
UniquenessStrictness
Verify whether we are the only instance running
[ConfigurationProperty("UniquenessStrictness", IsRequired = false, DefaultValue = 1)]
public int UniquenessStrictness { get; protected set; }
Property Value
Remarks
0 means no checking, 1 means checking but no error, 2 means fail if there are more instances
Methods
IsReadOnly()
Override of ConfigurationElement.IsReadOnly, always returns false.
public override bool IsReadOnly()
Returns
- bool
false