Class RedactEvents
- Namespace
- Cratis.Chronicle.Events
- Assembly
- Cratis.Chronicle.dll
Command for redacting events.
public record RedactEvents : IEquatable<RedactEvents>
- Inheritance
-
RedactEvents
- Implements
- Inherited Members
- Extension Methods
Constructors
RedactEvents(EventSourceId, RedactionReason, IEnumerable<EventTypeId>, IEnumerable<Causation>, Identity)
Command for redacting events.
public RedactEvents(EventSourceId EventSourceId, RedactionReason Reason, IEnumerable<EventTypeId> EventTypes, IEnumerable<Causation> Causation, Identity CausedBy)
Parameters
EventSourceIdEventSourceIdThe EventSourceId to redact.
ReasonRedactionReasonThe reason for redaction.
EventTypesIEnumerable<EventTypeId>Any specific event types to redact. Can be empty.
CausationIEnumerable<Causation>Collection of Causation.
CausedByIdentityCausedBy to identify the person, system or service that caused the event.
RedactEvents(RedactEvents)
protected RedactEvents(RedactEvents original)
Parameters
originalRedactEvents
Properties
Causation
Collection of Causation.
public IEnumerable<Causation> Causation { get; init; }
Property Value
CausedBy
CausedBy to identify the person, system or service that caused the event.
public Identity CausedBy { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
EventSourceId
The EventSourceId to redact.
public EventSourceId EventSourceId { get; init; }
Property Value
EventTypes
Any specific event types to redact. Can be empty.
public IEnumerable<EventTypeId> EventTypes { get; init; }
Property Value
Reason
The reason for redaction.
public RedactionReason Reason { get; init; }
Property Value
Methods
Deconstruct(out EventSourceId, out RedactionReason, out IEnumerable<EventTypeId>, out IEnumerable<Causation>, out Identity)
public void Deconstruct(out EventSourceId EventSourceId, out RedactionReason Reason, out IEnumerable<EventTypeId> EventTypes, out IEnumerable<Causation> Causation, out Identity CausedBy)
Parameters
EventSourceIdEventSourceIdReasonRedactionReasonEventTypesIEnumerable<EventTypeId>CausationIEnumerable<Causation>CausedByIdentity
Equals(RedactEvents?)
public virtual bool Equals(RedactEvents? other)
Parameters
otherRedactEvents
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 ==(RedactEvents?, RedactEvents?)
public static bool operator ==(RedactEvents? left, RedactEvents? right)
Parameters
leftRedactEventsrightRedactEvents
Returns
operator !=(RedactEvents?, RedactEvents?)
public static bool operator !=(RedactEvents? left, RedactEvents? right)
Parameters
leftRedactEventsrightRedactEvents