DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Protected Member Functions | Properties | List of all members
Deveel.Data.Diagnostics.SessionEvent Class Reference
Inheritance diagram for Deveel.Data.Diagnostics.SessionEvent:
Deveel.Data.Diagnostics.Event Deveel.Data.Diagnostics.IEvent

Public Member Functions

 SessionEvent (string userName, int commitId, SessionEventType eventType)
 

Protected Member Functions

override IEventSource OnSourceSet (IEventSource eventSource)
 
override void GetEventData (Dictionary< string, object > data)
 
- Protected Member Functions inherited from Deveel.Data.Diagnostics.Event
 Event ()
 
 Event (DateTimeOffset timeStamp)
 
virtual IEventSource OnSourceGet (IEventSource eventSource)
 

Properties

string UserName [get, private set]
 
int CommitId [get, private set]
 
SessionEventType EventType [get, private set]
 
- Properties inherited from Deveel.Data.Diagnostics.Event
IEventSource EventSource [get, set]
 
DateTimeOffset TimeStamp [get, private set]
 
IDictionary< string, object > IEvent. EventData [get]
 
- Properties inherited from Deveel.Data.Diagnostics.IEvent
IEventSource EventSource [get, set]
 Gets the event source. More...
 
DateTimeOffset TimeStamp [get]
 
IDictionary< string, object > EventData [get]
 Gets additional event data that come with the event. More...
 

Detailed Description

Definition at line 5 of file SessionEvent.cs.

Constructor & Destructor Documentation

Deveel.Data.Diagnostics.SessionEvent.SessionEvent ( string  userName,
int  commitId,
SessionEventType  eventType 
)
inline

Definition at line 6 of file SessionEvent.cs.

6  {
7  UserName = userName;
8  CommitId = commitId;
9  EventType = eventType;
10  }

Member Function Documentation

override void Deveel.Data.Diagnostics.SessionEvent.GetEventData ( Dictionary< string, object >  data)
inlineprotectedvirtual

Reimplemented from Deveel.Data.Diagnostics.Event.

Definition at line 25 of file SessionEvent.cs.

25  {
26  data[KnownEventMetadata.UserName] = UserName;
27  data[KnownEventMetadata.CommitId] = CommitId;
28  data["session.eventType"] = EventType.ToString();
29  }
override IEventSource Deveel.Data.Diagnostics.SessionEvent.OnSourceSet ( IEventSource  eventSource)
inlineprotectedvirtual

Reimplemented from Deveel.Data.Diagnostics.Event.

Definition at line 18 of file SessionEvent.cs.

18  {
19  if (!(eventSource is IDatabase))
20  throw new ArgumentException("Session event sources can be only databases");
21 
22  return base.OnSourceSet(eventSource);
23  }

Property Documentation

int Deveel.Data.Diagnostics.SessionEvent.CommitId
getprivate set

Definition at line 14 of file SessionEvent.cs.

SessionEventType Deveel.Data.Diagnostics.SessionEvent.EventType
getprivate set

Definition at line 16 of file SessionEvent.cs.

string Deveel.Data.Diagnostics.SessionEvent.UserName
getprivate set

Definition at line 12 of file SessionEvent.cs.


The documentation for this class was generated from the following file: