SdkInitialize(IConfigFactory, IDeadLetterQueue) Method |
Initialize the SDK.
Namespace: Sportradar.SDK.Services.SdkAssembly: Sdk (in Sdk.dll) Version: 2.28.0.0
Syntax public void Initialize(
IConfigFactory config_factory,
IDeadLetterQueue dead_letter_queue = null
)
Parameters
- config_factory IConfigFactory
- A factory for obtaining the configuration AppConfigFactory
- dead_letter_queue IDeadLetterQueue (Optional)
- Optional interface where a client can be notified about messages that could not be delivered (can be null)
Remarks
Config factory is used explicitly instead of actual configuration to emphasize that configuration is immutable
for the application after it is built (internally). It can (depending on the type of the factory) still be updated in run-time by
changing the configuration file.
Example
Initialize(AppConfigFactory.FromSection("Sdk"), DeadLetterInstance)
See Also