Click or drag to resize

IConnectionProvider Interface

Connection provider

Namespace: Sportradar.SDK.Common.Interfaces
Assembly: Common (in Common.dll) Version: 2.28.0.0
Syntax
C#
public interface IConnectionProvider

The IConnectionProvider type exposes the following members.

Properties
 NameDescription
Public propertyConnectionData Obtain current connection data
Public propertyIsStarted Obtain whether the connection provider is running.
Public propertyRxEnabled Whether reading from input stream is enabled or not (i.e. input msg queue going over the high watermark should disable all RX)
Top
Methods
 NameDescription
Public methodErrorObsolete.
Start immediate error recovery. Usually due to an error on the upper layer.
Public methodIsReceiveThread 
Public methodSendMessage Deliver a protocol unit (as a string) to the server.
Public methodStart Start the connection provider (connects to the server and start the automatic reconnection). ConnectionData must be initialized or else an exception is thrown.
Public methodStart(IConnectionData) Start the connection provider (connects to the server and start the automatic reconnection).
Public methodStop Stop the connection provider. Opposite of Start().
Public methodWaitForConnection Block and wait until the connection is established.
Public methodWaitForConnection(TimeSpan) 
Public methodWaitForDisconnection Block and wait until the connection is not established anymore.
Public methodWaitForDisconnection(TimeSpan) 
Top
Events
 NameDescription
Public eventOnAliveCheckNecessary Invoked when the protocol requires an alive check.
Public eventOnCommunicationError Invoked when a communication error on the physical connection is detected
Public eventOnConnected Invoked when the physical connection to the server is established.
Public eventOnDisconnected Invoked when the physical connection to the server is dropped.
Public eventOnMessageReceived Invoked when a new protocol data unit in string format is received.
Public eventOnValidDataCheckNecessary Invoked when the protocol requires a check for valid data.
Top
See Also