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
originalAppendResultWaitForCompletionResult
AppendResultWaitForCompletionResult(bool, IEnumerable<FailedPartition>)
Represents the result of waiting for observers affected by an append operation.
public AppendResultWaitForCompletionResult(bool IsSuccess, IEnumerable<FailedPartition> FailedPartitions)
Parameters
IsSuccessboolWhether all affected observers completed successfully.
FailedPartitionsIEnumerable<FailedPartition>Collection of failed partitions discovered while waiting.
Properties
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
FailedPartitions
Collection of failed partitions discovered while waiting.
public IEnumerable<FailedPartition> FailedPartitions { get; init; }
Property Value
IsSuccess
Whether all affected observers completed successfully.
public bool IsSuccess { get; init; }
Property Value
OutstandingObservers
Gets the identifiers of observers still outstanding when the wait timed out.
public IEnumerable<string> OutstandingObservers { get; init; }
Property Value
TimedOut
Gets whether the wait timed out before every observer completed or failed.
public bool TimedOut { get; init; }
Property Value
Methods
Deconstruct(out bool, out IEnumerable<FailedPartition>)
public void Deconstruct(out bool IsSuccess, out IEnumerable<FailedPartition> FailedPartitions)
Parameters
IsSuccessboolFailedPartitionsIEnumerable<FailedPartition>
Equals(AppendResultWaitForCompletionResult?)
public virtual bool Equals(AppendResultWaitForCompletionResult? other)
Parameters
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 ==(AppendResultWaitForCompletionResult?, AppendResultWaitForCompletionResult?)
public static bool operator ==(AppendResultWaitForCompletionResult? left, AppendResultWaitForCompletionResult? right)
Parameters
Returns
operator !=(AppendResultWaitForCompletionResult?, AppendResultWaitForCompletionResult?)
public static bool operator !=(AppendResultWaitForCompletionResult? left, AppendResultWaitForCompletionResult? right)