Class Causation
Represents a causation instance.
public record Causation : IEquatable<Causation>
- Inheritance
-
Causation
- Implements
- Inherited Members
Constructors
Causation(DateTimeOffset, CausationType, IDictionary<string, string>)
Represents a causation instance.
public Causation(DateTimeOffset Occurred, CausationType Type, IDictionary<string, string> Properties)
Parameters
OccurredDateTimeOffsetWhen it occurred.
TypeCausationTypeType of causation.
PropertiesIDictionary<string, string>Any properties associated with the causation.
Properties
Occurred
When it occurred.
public DateTimeOffset Occurred { get; init; }
Property Value
Properties
Any properties associated with the causation.
public IDictionary<string, string> Properties { get; init; }
Property Value
Type
Type of causation.
public CausationType Type { get; init; }
Property Value
Methods
Unknown()
Creates an unknown causation instance.
public static Causation Unknown()