Table of Contents

Class CompensationForAttribute<TEventType>

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

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

TEventType

The 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; }

Property Value

Type