Visual Basic (Usage) | ![]() |
---|---|
Dim instance As Session Dim handler As OnStatusChange AddHandler instance.StatusChange, handler |
C# | |
---|---|
public event OnStatusChange StatusChange |
The event handler receives an argument of type StatusCheckEventArgs containing data related to this event. The following StatusCheckEventArgs properties provide information specific to this event.
Property | Description |
---|---|
CancelKeepAlive | Gets or sets a flag indicating whether the session should send another keep alive. |
CurrentState | Gets the current server state. |
CurrentTime | Gets the current server time. |
Status | Gets the status associated with the keep alive operation. |
Once a session is created a timer will periodically, at the reate defined in the StatusCheckInterval property,
read the server state and current time.
If this read operation succeeds this event will be raised each time the keep alive period elapses.
If an error is detected (KeepAliveStopped == true) then this event will be raised as well.
Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x