Class AppendResultWaitForCompletionResult

Namespace
Cratis.Chronicle.Observation
Assembly
Cratis.Chronicle.dll

Represents the result of waiting for observers affected by an append operation.

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

Constructors

AppendResultWaitForCompletionResult(AppendResultWaitForCompletionResult)

protected AppendResultWaitForCompletionResult(AppendResultWaitForCompletionResult original)

Parameters

original AppendResultWaitForCompletionResult

AppendResultWaitForCompletionResult(bool, IEnumerable<FailedPartition>)

Represents the result of waiting for observers affected by an append operation.

public AppendResultWaitForCompletionResult(bool IsSuccess, IEnumerable<FailedPartition> FailedPartitions)

Parameters

IsSuccess bool

Whether all affected observers completed successfully.

FailedPartitions IEnumerable<FailedPartition>

Collection of failed partitions discovered while waiting.

Properties

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

FailedPartitions

Collection of failed partitions discovered while waiting.

public IEnumerable<FailedPartition> FailedPartitions { get; init; }

Property Value

IEnumerable<FailedPartition>

IsSuccess

Whether all affected observers completed successfully.

public bool IsSuccess { get; init; }

Property Value

bool

OutstandingObservers

Gets the identifiers of observers still outstanding when the wait timed out.

public IEnumerable<string> OutstandingObservers { get; init; }

Property Value

IEnumerable<string>

TimedOut

Gets whether the wait timed out before every observer completed or failed.

public bool TimedOut { get; init; }

Property Value

bool

Methods

Deconstruct(out bool, out IEnumerable<FailedPartition>)

public void Deconstruct(out bool IsSuccess, out IEnumerable<FailedPartition> FailedPartitions)

Parameters

IsSuccess bool
FailedPartitions IEnumerable<FailedPartition>

Equals(AppendResultWaitForCompletionResult?)

public virtual bool Equals(AppendResultWaitForCompletionResult? other)

Parameters

other AppendResultWaitForCompletionResult

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

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

Parameters

left AppendResultWaitForCompletionResult
right AppendResultWaitForCompletionResult

Returns

bool

operator !=(AppendResultWaitForCompletionResult?, AppendResultWaitForCompletionResult?)

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

Parameters

left AppendResultWaitForCompletionResult
right AppendResultWaitForCompletionResult

Returns

bool