Class RedactionEventContent
- Namespace
- Cratis.Chronicle.Events
- Assembly
- Cratis.Chronicle.dll
Represents the content of a redaction event.
public record RedactionEventContent : IEquatable<RedactionEventContent>
- Inheritance
-
RedactionEventContent
- Implements
- Inherited Members
- Extension Methods
Constructors
RedactionEventContent(RedactionEventContent)
protected RedactionEventContent(RedactionEventContent original)
Parameters
originalRedactionEventContent
RedactionEventContent(RedactionReason, EventTypeId, DateTimeOffset, CorrelationId, IEnumerable<Causation>, IEnumerable<IdentityId>)
Represents the content of a redaction event.
public RedactionEventContent(RedactionReason Reason, EventTypeId OriginalEventType, DateTimeOffset Occurred, CorrelationId CorrelationId, IEnumerable<Causation> Causation, IEnumerable<IdentityId> CausedBy)
Parameters
ReasonRedactionReasonThe reason for redaction.
OriginalEventTypeEventTypeIdThe original type the redaction is for.
OccurredDateTimeOffsetThe time the redaction occurred.
CorrelationIdCorrelationIdThe unique identifier used to correlation.
CausationIEnumerable<Causation>A collection of Causation for what caused the redaction.
CausedByIEnumerable<IdentityId>Who or what caused the event.
Properties
Causation
A collection of Causation for what caused the redaction.
public IEnumerable<Causation> Causation { get; init; }
Property Value
CausedBy
Who or what caused the event.
public IEnumerable<IdentityId> CausedBy { get; init; }
Property Value
CorrelationId
The unique identifier used to correlation.
public CorrelationId CorrelationId { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Occurred
The time the redaction occurred.
public DateTimeOffset Occurred { get; init; }
Property Value
OriginalEventType
The original type the redaction is for.
public EventTypeId OriginalEventType { get; init; }
Property Value
Reason
The reason for redaction.
public RedactionReason Reason { get; init; }
Property Value
Methods
Deconstruct(out RedactionReason, out EventTypeId, out DateTimeOffset, out CorrelationId, out IEnumerable<Causation>, out IEnumerable<IdentityId>)
public void Deconstruct(out RedactionReason Reason, out EventTypeId OriginalEventType, out DateTimeOffset Occurred, out CorrelationId CorrelationId, out IEnumerable<Causation> Causation, out IEnumerable<IdentityId> CausedBy)
Parameters
ReasonRedactionReasonOriginalEventTypeEventTypeIdOccurredDateTimeOffsetCorrelationIdCorrelationIdCausationIEnumerable<Causation>CausedByIEnumerable<IdentityId>
Equals(RedactionEventContent?)
public virtual bool Equals(RedactionEventContent? other)
Parameters
otherRedactionEventContent
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(RedactionEventContent?, RedactionEventContent?)
public static bool operator ==(RedactionEventContent? left, RedactionEventContent? right)
Parameters
leftRedactionEventContentrightRedactionEventContent
Returns
operator !=(RedactionEventContent?, RedactionEventContent?)
public static bool operator !=(RedactionEventContent? left, RedactionEventContent? right)
Parameters
leftRedactionEventContentrightRedactionEventContent