Class EventRedacted

Namespace
Cratis.Chronicle.Events
Assembly
Cratis.Chronicle.dll

Represents the content of a redaction event.

[EventType("", 1)]
public record EventRedacted : IEquatable<EventRedacted>
Inheritance
EventRedacted
Implements
Inherited Members
Extension Methods

Constructors

EventRedacted(EventRedacted)

protected EventRedacted(EventRedacted original)

Parameters

original EventRedacted

EventRedacted(RedactionReason, Type, DateTimeOffset, CorrelationId, IEnumerable<Causation>, IEnumerable<IdentityId>)

Represents the content of a redaction event.

public EventRedacted(RedactionReason Reason, Type OriginalEventType, DateTimeOffset Occurred, CorrelationId CorrelationId, IEnumerable<Causation> Causation, IEnumerable<IdentityId> CausedBy)

Parameters

Reason RedactionReason

The reason for redaction.

OriginalEventType Type

The original type the redaction is for.

Occurred DateTimeOffset

The time the redaction occurred.

CorrelationId CorrelationId

The unique identifier used to correlation.

Causation IEnumerable<Causation>

The chain of causation.

CausedBy IEnumerable<IdentityId>

Who or what caused the event.

Properties

Causation

The chain of causation.

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

Property Value

IEnumerable<Causation>

CausedBy

Who or what caused the event.

public IEnumerable<IdentityId> CausedBy { get; init; }

Property Value

IEnumerable<IdentityId>

CorrelationId

The unique identifier used to correlation.

public CorrelationId CorrelationId { get; init; }

Property Value

CorrelationId

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Occurred

The time the redaction occurred.

public DateTimeOffset Occurred { get; init; }

Property Value

DateTimeOffset

OriginalEventType

The original type the redaction is for.

public Type OriginalEventType { get; init; }

Property Value

Type

Reason

The reason for redaction.

public RedactionReason Reason { get; init; }

Property Value

RedactionReason

Methods

Deconstruct(out RedactionReason, out Type, out DateTimeOffset, out CorrelationId, out IEnumerable<Causation>, out IEnumerable<IdentityId>)

public void Deconstruct(out RedactionReason Reason, out Type OriginalEventType, out DateTimeOffset Occurred, out CorrelationId CorrelationId, out IEnumerable<Causation> Causation, out IEnumerable<IdentityId> CausedBy)

Parameters

Reason RedactionReason
OriginalEventType Type
Occurred DateTimeOffset
CorrelationId CorrelationId
Causation IEnumerable<Causation>
CausedBy IEnumerable<IdentityId>

Equals(EventRedacted?)

public virtual bool Equals(EventRedacted? other)

Parameters

other EventRedacted

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 ==(EventRedacted?, EventRedacted?)

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

Parameters

left EventRedacted
right EventRedacted

Returns

bool

operator !=(EventRedacted?, EventRedacted?)

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

Parameters

left EventRedacted
right EventRedacted

Returns

bool