Class EventTypeGenerationForAttribute<TEventType>
- Namespace
- Cratis.Chronicle.Events
- Assembly
- Cratis.Chronicle.dll
Attribute used to mark a type as representing a previous generation of TEventType.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public sealed class EventTypeGenerationForAttribute<TEventType> : EventTypeGenerationForAttribute where TEventType : class
Type Parameters
TEventTypeThe event type this is a generation for.
- Inheritance
-
EventTypeGenerationForAttribute<TEventType>
- Inherited Members
- Extension Methods
Remarks
Place this on a previous-generation record instead of EventTypeAttribute. The event type
id is resolved from TEventType's own EventTypeAttribute, so the two
generations can never drift apart by a hand-typed, mismatched id string.
Constructors
EventTypeGenerationForAttribute(uint)
Attribute used to mark a type as representing a previous generation of TEventType.
public EventTypeGenerationForAttribute(uint generation)
Parameters
generationuintThe generation this type represents.
Remarks
Place this on a previous-generation record instead of EventTypeAttribute. The event type
id is resolved from TEventType's own EventTypeAttribute, so the two
generations can never drift apart by a hand-typed, mismatched id string.
Properties
EventTypeClrType
Gets the Type of the event type this is a generation for.
public override Type EventTypeClrType { get; }