EasyUA Reference
StatusChange Event
See Also  Send Feedback
EasyUA Assembly > Advosol.EasyUA Namespace > Session Class : StatusChange Event

Glossary Item Box

Raised when a StatusCheck server access failed or detected a changed server state.

Syntax

Visual Basic (Usage)Copy Code
Dim instance As Session
Dim handler As OnStatusChange
 
AddHandler instance.StatusChange, handler
C# 
public event OnStatusChange StatusChange

Event Data

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.

PropertyDescription
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.

Remarks

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.

Requirements

Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x

See Also

Copyright © 2018 Advosol Inc. All Rights Reserved.