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 SessionEventArgs class.
Declaration
public SessionEventArgs(SessionEventType eventType, SessionKey sessionKey)
  Parameters
| Type | Name | Description | 
|---|---|---|
| SessionEventType | eventType | Type of the event.  | 
      
| MAT.OCS.Core.SessionKey | sessionKey | The session key.  | 
      
SessionEventArgs(SessionEventType, SessionKey, Dictionary<String, Object>)
Initialises a new instance of the SessionEventArgs class.
Declaration
public SessionEventArgs(SessionEventType eventType, SessionKey sessionKey, Dictionary<string, object> eventDetails)
  Parameters
| Type | Name | Description | 
|---|---|---|
| SessionEventType | eventType | Type of the event.  | 
      
| MAT.OCS.Core.SessionKey | sessionKey | The session key.  | 
      
| System.Collections.Generic.Dictionary<System.String, System.Object> | eventDetails | The event details.  | 
      
SessionEventArgs(SessionEventType, SessionKey, Dictionary<String, Object>, String)
Initialises a new instance of the SessionEventArgs class.
Declaration
public SessionEventArgs(SessionEventType eventType, SessionKey sessionKey, Dictionary<string, object> eventDetails, string message)
  Parameters
| Type | Name | Description | 
|---|---|---|
| SessionEventType | eventType | Type of the event.  | 
      
| MAT.OCS.Core.SessionKey | sessionKey | The session key.  | 
      
| System.Collections.Generic.Dictionary<System.String, System.Object> | eventDetails | The event details.  | 
      
| System.String | message | The message  | 
      
SessionEventArgs(SessionEventType, SessionKey, String)
Initialises a new instance of the SessionEventArgs class.
Declaration
public SessionEventArgs(SessionEventType eventType, SessionKey sessionKey, string message)
  Parameters
| Type | Name | Description | 
|---|---|---|
| SessionEventType | eventType | Type of the event.  | 
      
| MAT.OCS.Core.SessionKey | sessionKey | The session key.  | 
      
| System.String | 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.Collections.Generic.Dictionary<System.String, System.Object> | 
EventType
Gets the type of the event.
Declaration
public SessionEventType EventType { get; }
  Property Value
| Type | Description | 
|---|---|
| SessionEventType | The type of the event.  | 
      
Message
Gets or sets the message.
Declaration
public string Message { get; }
  Property Value
| Type | Description | 
|---|---|
| System.String | The message.  | 
      
SessionKey
Gets the session key.
Declaration
public SessionKey SessionKey { get; }
  Property Value
| Type | Description | 
|---|---|
| MAT.OCS.Core.SessionKey | 
Methods
ToString()
Returns a System.String that represents this instance.
Declaration
public override string ToString()
  Returns
| Type | Description | 
|---|---|
| System.String | A System.String that represents this instance.  |