Class EventDefinition
This class encapsulates metadata for an event definition.
Inheritance
Namespace: MESL.SqlRace.Domain
Assembly: MESL.SqlRace.Domain.dll
Syntax
public class EventDefinition : Object
Remarks
EventDefinitions are used by an Event and must be created before an Event is raised.
An EventDefinition
holds a collection of ConversionBase and are used to convert raw data that is sent with an event.
Constructors
EventDefinition(Int32, String, EventPriorityType, IList<String>, String)
Initialises a new instance of the EventDefinition class.
Declaration
public EventDefinition(int eventDefinitionId, string description, EventPriorityType priority, IList<string> conversionFunctionNames, string groupName)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | eventDefinitionId | The event definition id. |
System.String | description | The description. |
EventPriorityType | priority | The priority. |
System.Collections.Generic.IList<System.String> | conversionFunctionNames | The conversion function names. |
System.String | groupName | Name of the group. |
Properties
ConversionFunctionNames
Gets the conversion function names.
Declaration
public IList<string> ConversionFunctionNames { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<System.String> | The conversion function names. |
Description
Gets the description of the event definition.
Declaration
public string Description { get; }
Property Value
Type | Description |
---|---|
System.String | The description. |
EventDefinitionId
Gets the event definition id provided by the client. The event definition id and group name combination must be unique within a session
Declaration
public int EventDefinitionId { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The event definition id. |
GroupName
Gets the application group name of the event definition.
Declaration
public string GroupName { get; }
Property Value
Type | Description |
---|---|
System.String | The name of the application group. |
Key
Gets the Key of the event definition.
Declaration
public string Key { get; }
Property Value
Type | Description |
---|---|
System.String | The key of the event definition. |
Priority
Gets the priority for the event definition.
Declaration
public EventPriorityType Priority { get; }
Property Value
Type | Description |
---|---|
EventPriorityType | The priority. |
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. |