C-DEngine 5.105

TheQueuedSenderRegistry..::..RegisterHealthTimer Method

TheQueuedSenderRegistry manages all Serice Health related methods a timer that is fired every TheBaseAssets.MyServiceHostInfo.TO.QSenderHealthTime milliseconds (by default 1 second) This function allows to register a custom callback that will be called everytime the Timer is fired. Make sure you unregister the callback when its no longer needed to avoid memory leaks.

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

Syntax


public static void RegisterHealthTimer(
	Action<long> eventHealthTimer
)
Public Shared Sub RegisterHealthTimer ( _
	eventHealthTimer As Action(Of Long) _
)
public:
static void RegisterHealthTimer(
	Action<long long^>^ eventHealthTimer
)

Parameters

eventHealthTimer
Type: Action<(Of <(<'Int64>)>)>
A callback that the HealthTimer will call every QSenderHealthTime interval. The long parameter is a counter that is increased every time the timer was fired.