UnifiedFeed SDK is a client library that enables easier integration with the Betradar XML feeds. SDK exposes XML feed service interface in a more user-friendly way and isolates the client from having to do XML feed parsing, proper connection handling, error recovery, event queuing, data caching and dispatching.
This commit addresses an issue where the IDispatcherStore was being shared between multiple IOddsFeedSession instances.
Currently, we utilize separate IOddsFeedSession objects for handling MessageInterest.LiveMessagesOnly and MessageInterest.PrematchMessagesOnly scenarios.
The code snippet below illustrates the session creation process:
Upon closer examination, it was discovered that the _oddsFeedLiveSession object was inadvertently sharing the same set of dispatchers as the _oddsFeedPrematchSession. Consequently, attempting to create a dispatcher for the _oddsFeedLiveSession led to an exception.
To resolve this issue, the proposed changes ensure that each session (_oddsFeedPrematchSession and _oddsFeedLiveSession) has its own set of distinct dispatchers, eliminating the exception and providing the expected behavior.
This commit addresses an issue where the IDispatcherStore was being shared between multiple IOddsFeedSession instances.
Currently, we utilize separate IOddsFeedSession objects for handling MessageInterest.LiveMessagesOnly and MessageInterest.PrematchMessagesOnly scenarios.
The code snippet below illustrates the session creation process:
Upon closer examination, it was discovered that the _oddsFeedLiveSession object was inadvertently sharing the same set of dispatchers as the _oddsFeedPrematchSession. Consequently, attempting to create a dispatcher for the _oddsFeedLiveSession led to an exception.
To resolve this issue, the proposed changes ensure that each session (_oddsFeedPrematchSession and _oddsFeedLiveSession) has its own set of distinct dispatchers, eliminating the exception and providing the expected behavior.