Class OccurrenceRecordResult

Namespace
Cratis.Chronicle.Occurrences
Assembly
Cratis.Chronicle.dll

Describes the durable ingress outcome. Retrying the same identity and payload after a lost acknowledgement is safe.

public record OccurrenceRecordResult : IEquatable<OccurrenceRecordResult>
Inheritance
OccurrenceRecordResult
Implements
Inherited Members
Extension Methods

Constructors

OccurrenceRecordResult(OccurrenceId, OccurrenceRecordStatus)

Describes the durable ingress outcome. Retrying the same identity and payload after a lost acknowledgement is safe.

public OccurrenceRecordResult(OccurrenceId Id, OccurrenceRecordStatus Status)

Parameters

Id OccurrenceId

The occurrence identity.

Status OccurrenceRecordStatus

The ingress outcome.

OccurrenceRecordResult(OccurrenceRecordResult)

protected OccurrenceRecordResult(OccurrenceRecordResult original)

Parameters

original OccurrenceRecordResult

Properties

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Id

The occurrence identity.

public OccurrenceId Id { get; init; }

Property Value

OccurrenceId

Status

The ingress outcome.

public OccurrenceRecordStatus Status { get; init; }

Property Value

OccurrenceRecordStatus

Methods

Deconstruct(out OccurrenceId, out OccurrenceRecordStatus)

public void Deconstruct(out OccurrenceId Id, out OccurrenceRecordStatus Status)

Parameters

Id OccurrenceId
Status OccurrenceRecordStatus

Equals(OccurrenceRecordResult?)

public virtual bool Equals(OccurrenceRecordResult? other)

Parameters

other OccurrenceRecordResult

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

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

Parameters

left OccurrenceRecordResult
right OccurrenceRecordResult

Returns

bool

operator !=(OccurrenceRecordResult?, OccurrenceRecordResult?)

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

Parameters

left OccurrenceRecordResult
right OccurrenceRecordResult

Returns

bool