Interface ISessionEventService
A SqlRace service to deal with session events.
Namespace: MESL.SqlRace.Domain.Events
Assembly: MESL.SqlRace.Domain.dll
Syntax
public interface ISessionEventService
Methods
AddEvent(SessionKey, Int32, Int64, IEnumerable<Double>)
Add an event to a specified event definition to the session specified by sessionKey.
Declaration
void AddEvent(SessionKey sessionKey, int eventDefinitionId, long timestamp, IEnumerable<double> rawData = null)
Parameters
Type | Name | Description |
---|---|---|
MAT.OCS.Core.SessionKey | sessionKey | |
System.Int32 | eventDefinitionId | |
System.Int64 | timestamp | Event's timestamp. |
System.Collections.Generic.IEnumerable<System.Double> | rawData | Event raw data (Optional). |
AddEventDefinition(SessionKey, String, EventPriorityType, String, Boolean)
Adds a new event definition to the session.
Declaration
EventDefinition AddEventDefinition(SessionKey sessionKey, string description, EventPriorityType priority, string groupName, bool shouldPersist = false)
Parameters
Type | Name | Description |
---|---|---|
MAT.OCS.Core.SessionKey | sessionKey | |
System.String | description | Event definition description. |
EventPriorityType | priority | Event definition priority. |
System.String | groupName | Application group name. |
System.Boolean | shouldPersist | If false the event is added to transient configuration set. |
Returns
Type | Description |
---|---|
EventDefinition | Returns the new EventDefinition that has been added of successful, else returns null. |