Class UofSdk
- Namespace
- Sportradar.OddsFeed.SDK.Api
- Assembly
- Sportradar.OddsFeed.SDK.dll
A IUofSdk implementation acting as an entry point to the odds feed SDK
public class UofSdk : EntityDispatcherBase, IUofSdk, IDisposable
- Inheritance
-
UofSdk
- Implements
- Derived
- Inherited Members
Constructors
UofSdk(IServiceProvider)
Constructs a new instance of the UofSdk class
public UofSdk(IServiceProvider serviceProvider)
Parameters
serviceProviderIServiceProviderA IServiceProvider instance including UofSdk configuration
UofSdk(IServiceProvider, bool)
Initializes a new instance of the UofSdk class
protected UofSdk(IServiceProvider serviceProvider, bool isReplay)
Parameters
serviceProviderIServiceProviderA IServiceProvider instance including UofSdk configuration
isReplayboolValue indicating whether the constructed instance will be used to connect to replay server
Fields
ServiceProvider
A service provider where all the UofSdk services are registered
protected readonly IServiceProvider ServiceProvider
Field Value
Properties
BookingManager
Gets a IBookingManager instance used to perform various booking calendar operations
public IBookingManager BookingManager { get; }
Property Value
- IBookingManager
The booking manager
BookmakerDetails
Gets a IBookmakerDetails instance used to get info about bookmaker and token used
public IBookmakerDetails BookmakerDetails { get; }
Property Value
CashOutProbabilitiesProvider
Gets theICashOutProbabilitiesProvider instance used to retrieve cash out probabilities for betting markets
public ICashOutProbabilitiesProvider CashOutProbabilitiesProvider { get; }
Property Value
CustomBetManager
Gets a ICustomBetManager instance used to perform various custom bet operations
public ICustomBetManager CustomBetManager { get; }
Property Value
- ICustomBetManager
The custom bet manager
EventChangeManager
Gets a IEventChangeManager instance used to automatically receive fixture and result changes
public IEventChangeManager EventChangeManager { get; }
Property Value
EventRecoveryRequestIssuer
Gets a IEventRecoveryRequestIssuer instance used to issue recovery requests to the feed
public IEventRecoveryRequestIssuer EventRecoveryRequestIssuer { get; }
Property Value
MarketDescriptionManager
Gets a IMarketDescriptionManager instance used to get info about available markets, and to get translations for markets and outcomes including outrights
public IMarketDescriptionManager MarketDescriptionManager { get; }
Property Value
ProducerManager
Gets a IProducerManager instance used to retrieve producer related data
public IProducerManager ProducerManager { get; }
Property Value
- IProducerManager
The producer manager
SportDataProvider
Gets a ISportDataProvider instance used to retrieve sport related data from the feed
public ISportDataProvider SportDataProvider { get; }
Property Value
- ISportDataProvider
The sport data provider
Methods
AvailableLanguages()
Get all available languages that can be used within SDK and are supported on feed messages
public static IEnumerable<CultureInfo> AvailableLanguages()
Returns
- IEnumerable<CultureInfo>
List<CultureInfo>
Close()
Closes the current UofSdk instance and disposes resources used by it
public void Close()
DispatchConnectionException(CallbackExceptionEventArgs)
Dispatches the information that the exception was thrown in connection loop
public void DispatchConnectionException(CallbackExceptionEventArgs callbackExceptionEventArgs)
Parameters
callbackExceptionEventArgsCallbackExceptionEventArgsThe information about the exception
Dispose()
Disposes the current instance and resources associated with it
public void Dispose()
Dispose(bool)
Disposes the current instance and resources associated with it
protected void Dispose(bool disposing)
Parameters
disposingboolValue indicating whether the managed resources should also be disposed
GetConfigurationBuilder()
Constructs a IUofConfiguration instance from provided information
public static ITokenSetter GetConfigurationBuilder()
Returns
- ITokenSetter
A IUofConfiguration instance created from provided information
GetSessionBuilder()
Constructs and returns a new instance of IUofSessionBuilder
public IUofSessionBuilder GetSessionBuilder()
Returns
- IUofSessionBuilder
Constructed instance of the IUofSessionBuilder
IsOpen()
Returns an indicator if the feed instance is opened or not
public bool IsOpen()
Returns
- bool
Returns true if the sdk is opened, otherwise false
Open()
Opens the current feed by opening all created sessions
public void Open()
Exceptions
- ObjectDisposedException
- InvalidOperationException
The feed is already opened or The configuration is not valid
- CommunicationException
Connection to the REST-ful API failed, Probable Reason={Invalid or expired token} or Connection to the message broker failed, Probable Reason={Invalid or expired token} or
Events
Closed
Occurs when feed is closed
public event EventHandler<FeedCloseEventArgs> Closed
Event Type
ConnectionException
Occurs when an exception occurs in the connection loop
public event EventHandler<ConnectionExceptionEventArgs> ConnectionException
Event Type
Disconnected
Raised when the current instance of IUofSdk loses connection to the feed
public event EventHandler<EventArgs> Disconnected
Event Type
EventRecoveryCompleted
Occurs when a requested event recovery completes
public event EventHandler<EventRecoveryCompletedEventArgs> EventRecoveryCompleted
Event Type
ProducerDown
Raised when the current IUofSdk instance determines that the IProducer associated with the odds feed went down
public event EventHandler<ProducerStatusChangeEventArgs> ProducerDown
Event Type
ProducerUp
Raised when the current IUofSdk instance determines that the IProducer associated with the odds feed went up (back online)
public event EventHandler<ProducerStatusChangeEventArgs> ProducerUp
Event Type
RecoveryInitiated
Occurs when a recovery initiation completes
public event EventHandler<RecoveryInitiatedEventArgs> RecoveryInitiated