Class CommandOperationOutcome

Namespace
Cratis.Arc.Commands
Assembly
Cratis.Arc.Core.dll

Immutable server-side observation of a started operation. Never included in the transport recovery summary.

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

Constructors

CommandOperationOutcome(int, Type, bool, CommandOperationCompensation, string?)

Immutable server-side observation of a started operation. Never included in the transport recovery summary.

public CommandOperationOutcome(int InvocationIndex, Type OperationType, bool ExecutionCompleted, CommandOperationCompensation Compensation, string? CompensationFailure = null)

Parameters

InvocationIndex int

Zero-based declaration index.

OperationType Type

The declaration type, without its business payload.

ExecutionCompleted bool

Whether Execute returned successfully.

Compensation CommandOperationCompensation

The observed compensation outcome.

CompensationFailure string

Optional server-only failure message.

Properties

Compensation

The observed compensation outcome.

public CommandOperationCompensation Compensation { get; init; }

Property Value

CommandOperationCompensation

CompensationFailure

Optional server-only failure message.

public string? CompensationFailure { get; init; }

Property Value

string

ExecutionCompleted

Whether Execute returned successfully.

public bool ExecutionCompleted { get; init; }

Property Value

bool

InvocationIndex

Zero-based declaration index.

public int InvocationIndex { get; init; }

Property Value

int

OperationType

The declaration type, without its business payload.

public Type OperationType { get; init; }

Property Value

Type

Methods

Deconstruct(out int, out Type, out bool, out CommandOperationCompensation, out string?)

public void Deconstruct(out int InvocationIndex, out Type OperationType, out bool ExecutionCompleted, out CommandOperationCompensation Compensation, out string? CompensationFailure)

Parameters

InvocationIndex int
OperationType Type
ExecutionCompleted bool
Compensation CommandOperationCompensation
CompensationFailure string

Equals(CommandOperationOutcome?)

public bool Equals(CommandOperationOutcome? other)

Parameters

other CommandOperationOutcome

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(CommandOperationOutcome?, CommandOperationOutcome?)

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

Parameters

left CommandOperationOutcome
right CommandOperationOutcome

Returns

bool

operator !=(CommandOperationOutcome?, CommandOperationOutcome?)

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

Parameters

left CommandOperationOutcome
right CommandOperationOutcome

Returns

bool