Class SessionEventArgs
Container for information about a session event
Namespace: MESL.SqlRace.Domain
Assembly: MESL.SqlRace.Domain.dll
Syntax
public class SessionEventArgs : EventArgs
Constructors
SessionEventArgs(SessionEventType, SessionKey)
Initialises a new instance of the Session
Declaration
public SessionEventArgs(SessionEventType eventType, SessionKey sessionKey)
Parameters
Type | Name | Description |
---|---|---|
Session |
eventType | Type of the event. |
MAT. |
sessionKey | The session key. |
SessionEventArgs(SessionEventType, SessionKey, Dictionary<String, Object>)
Initialises a new instance of the Session
Declaration
public SessionEventArgs(SessionEventType eventType, SessionKey sessionKey, Dictionary<string, object> eventDetails)
Parameters
Type | Name | Description |
---|---|---|
Session |
eventType | Type of the event. |
MAT. |
sessionKey | The session key. |
System. |
eventDetails | The event details. |
SessionEventArgs(SessionEventType, SessionKey, Dictionary<String, Object>, String)
Initialises a new instance of the Session
Declaration
public SessionEventArgs(SessionEventType eventType, SessionKey sessionKey, Dictionary<string, object> eventDetails, string message)
Parameters
Type | Name | Description |
---|---|---|
Session |
eventType | Type of the event. |
MAT. |
sessionKey | The session key. |
System. |
eventDetails | The event details. |
System. |
message | The message |
SessionEventArgs(SessionEventType, SessionKey, String)
Initialises a new instance of the Session
Declaration
public SessionEventArgs(SessionEventType eventType, SessionKey sessionKey, string message)
Parameters
Type | Name | Description |
---|---|---|
Session |
eventType | Type of the event. |
MAT. |
sessionKey | The session key. |
System. |
message | The message |
Properties
EventDetails
Gets the event details. The object type will be dependent on the event type.
Declaration
public Dictionary<string, object> EventDetails { get; }
Property Value
Type | Description |
---|---|
System. |
EventType
Gets the type of the event.
Declaration
public SessionEventType EventType { get; }
Property Value
Type | Description |
---|---|
Session |
The type of the event. |
Message
Gets or sets the message.
Declaration
public string Message { get; }
Property Value
Type | Description |
---|---|
System. |
The message. |
SessionKey
Gets the session key.
Declaration
public SessionKey SessionKey { get; }
Property Value
Type | Description |
---|---|
MAT. |
Methods
ToString()
Returns a System.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |
A System. |