Class TradeEvent<T>
Sealed algebraic data type of trade events parameterised by
RichTradeAction. Each case carries the originating action for
correlation. Topics use the naming scheme
sc.{scenarioId}.trade.{entity}.{event}.
public abstract record TradeEvent<T> : ITradeEvent<RichTradeAction, T>, IEvent<T>, IEquatable<IEvent<T>>, IEquatable<TradeEvent<T>> where T : IComparable<T>
Type Parameters
TThe event's own time type.
- Inheritance
-
TradeEvent<T>
- Implements
-
IEvent<T>IEquatable<IEvent<T>>IEquatable<TradeEvent<T>>
- Derived
- Inherited Members
Properties
Action
The action that produced this event (carried for correlation and audit).
public abstract RichTradeAction Action { get; }
Property Value
Time
The time at which this event's fact occurred.
public abstract T Time { get; }
Property Value
- T