Class EntityDispatcherBase
- Namespace
- Sportradar.OddsFeed.SDK.Api
- Assembly
- Sportradar.OddsFeed.SDK.dll
A base class for classes used to dispatch messages
public class EntityDispatcherBase
- Inheritance
-
EntityDispatcherBase
- Derived
- Inherited Members
Constructors
EntityDispatcherBase()
Initializes a new instance of the EntityDispatcherBase
protected EntityDispatcherBase()
Methods
Dispatch<T>(EventHandler<T>, T, FeedMessage)
Dispatches the feed message
protected void Dispatch<T>(EventHandler<T> handler, T eventArgs, FeedMessage message)
Parameters
handlerEventHandler<T>Event delegate
eventArgsTEvent arguments
messageFeedMessageA message to dispatch
Type Parameters
TThe type of the event arguments
Dispatch<T>(EventHandler<T>, T, string, int)
Raises the specified sdk event (ProducerUp, ProducerDown, ...)
protected void Dispatch<T>(EventHandler<T> handler, T eventArgs, string eventHandlerName, int producerId)
Parameters
handlerEventHandler<T>A EventHandler<TEventArgs> representing the event
eventArgsTEvent arguments
eventHandlerNamestringThe name of the event
producerIdintThe producer id
Type Parameters
TThe type of the event arguments