Class EventTypeAttribute
Attribute to adorn types for providing metadata about the actual EventType.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public sealed class EventTypeAttribute : Attribute
- Inheritance
-
EventTypeAttribute
- Inherited Members
Remarks
Initializes a new instance of EventTypeAttribute.
Constructors
EventTypeAttribute(string, uint)
Attribute to adorn types for providing metadata about the actual EventType.
public EventTypeAttribute(string id = "", uint generation = 1)
Parameters
idstringOptional identifier of the event type, if not used it will default to the type name.
generationuintEventTypeGeneration represented as uint.
Remarks
Initializes a new instance of EventTypeAttribute.
Properties
Generation
Gets the EventTypeGeneration for the event type.
public EventTypeGeneration Generation { get; }
Property Value
Id
Gets the EventTypeId for the event type.
public EventTypeId Id { get; }