Table of Contents

Class EventTypeAttribute

Namespace
Cratis.Chronicle.Events
Assembly
Cratis.Chronicle.dll

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

id string

Optional identifier of the event type, if not used it will default to the type name.

generation uint

EventTypeGeneration 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

EventTypeGeneration

Id

Gets the EventTypeId for the event type.

public EventTypeId Id { get; }

Property Value

EventTypeId