C-DEngine 5.105

TheCommCore..::..RegisterRelayEvents Method

Register callbacks for relay connection events

Namespace:  nsCDEngine.Communication
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public static void RegisterRelayEvents(
	Action<ICDEThing, TheChannelInfo> psinkNewRelayConnection,
	Action<ICDEThing, TheChannelInfo> psinkConnectionDropped,
	Action<TheSessionState> psinkNewSession
)
Public Shared Sub RegisterRelayEvents ( _
	psinkNewRelayConnection As Action(Of ICDEThing, TheChannelInfo), _
	psinkConnectionDropped As Action(Of ICDEThing, TheChannelInfo), _
	psinkNewSession As Action(Of TheSessionState) _
)
public:
static void RegisterRelayEvents(
	Action<ICDEThing^, TheChannelInfo^>^ psinkNewRelayConnection, 
	Action<ICDEThing^, TheChannelInfo^>^ psinkConnectionDropped, 
	Action<TheSessionState^>^ psinkNewSession
)

Parameters

psinkNewRelayConnection
Type: Action<(Of <(<'ICDEThing, TheChannelInfo>)>)>
Event is fired when a new connection was established to the Relay
psinkConnectionDropped
Type: Action<(Of <(<'ICDEThing, TheChannelInfo>)>)>
Event is fired when a connection was dropped from the Relay
psinkNewSession
Type: Action<(Of <(<'TheSessionState>)>)>
Event is fired when a new session for a connection was created