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

EventSourceId EventSourceId

The EventSourceId to redact.

Reason RedactionReason

The reason for redaction.

EventTypes IEnumerable<EventTypeId>

Any specific event types to redact. Can be empty.

Causation IEnumerable<Causation>

Collection of Causation.

CausedBy Identity

CausedBy to identify the person, system or service that caused the event.

RedactEvents(RedactEvents)

protected RedactEvents(RedactEvents original)

Parameters

original RedactEvents

Properties

Causation

Collection of Causation.

public IEnumerable<Causation> Causation { get; init; }

Property Value

IEnumerable<Causation>

CausedBy

CausedBy to identify the person, system or service that caused the event.

public Identity CausedBy { get; init; }

Property Value

Identity

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

EventSourceId

The EventSourceId to redact.

public EventSourceId EventSourceId { get; init; }

Property Value

EventSourceId

EventTypes

Any specific event types to redact. Can be empty.

public IEnumerable<EventTypeId> EventTypes { get; init; }

Property Value

IEnumerable<EventTypeId>

Reason

The reason for redaction.

public RedactionReason Reason { get; init; }

Property Value

RedactionReason

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

EventSourceId EventSourceId
Reason RedactionReason
EventTypes IEnumerable<EventTypeId>
Causation IEnumerable<Causation>
CausedBy Identity

Equals(RedactEvents?)

public virtual bool Equals(RedactEvents? other)

Parameters

other RedactEvents

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(RedactEvents?, RedactEvents?)

public static bool operator ==(RedactEvents? left, RedactEvents? right)

Parameters

left RedactEvents
right RedactEvents

Returns

bool

operator !=(RedactEvents?, RedactEvents?)

public static bool operator !=(RedactEvents? left, RedactEvents? right)

Parameters

left RedactEvents
right RedactEvents

Returns

bool