Class CompensationForAttribute<TEventType>
Attribute used to mark an event type as a compensation for TEventType.
Useful in systems that require explicit compensation records, such as ledger systems.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public sealed class CompensationForAttribute<TEventType> : CompensationForAttribute where TEventType : class
Type Parameters
TEventTypeThe event type that this event compensates for.
- Inheritance
-
CompensationForAttribute<TEventType>
- Inherited Members
Remarks
The compensated event type information is passed along as metadata in the event type JSON schema.
Properties
CompensatedEventType
Gets the Type of the event that this event compensates for.
public override Type CompensatedEventType { get; }