Table of Contents

Class DecisionReplayOutcome

Namespace
ReferenceApplication.Web.Governance.Replay
Assembly
ReferenceApplication.Web.dll

Carries a replay result, or why there is none.

public sealed record DecisionReplayOutcome : IEquatable<DecisionReplayOutcome>
Inheritance
DecisionReplayOutcome
Implements
Inherited Members

Constructors

DecisionReplayOutcome(DecisionReplayResult?, string?, bool)

Carries a replay result, or why there is none.

public DecisionReplayOutcome(DecisionReplayResult? Result, string? Error, bool NotFound)

Parameters

Result DecisionReplayResult

The result, when the decision was replayed.

Error string

Why the request could not be replayed, when it was invalid.

NotFound bool

Whether no decision has the receipt identifier.

Properties

Error

Why the request could not be replayed, when it was invalid.

public string? Error { get; init; }

Property Value

string

Missing

Gets the outcome for an unknown receipt identifier.

public static DecisionReplayOutcome Missing { get; }

Property Value

DecisionReplayOutcome

NotFound

Whether no decision has the receipt identifier.

public bool NotFound { get; init; }

Property Value

bool

Result

The result, when the decision was replayed.

public DecisionReplayResult? Result { get; init; }

Property Value

DecisionReplayResult

Methods

Invalid(string)

Creates the outcome for a request that cannot be replayed.

public static DecisionReplayOutcome Invalid(string error)

Parameters

error string

The reason.

Returns

DecisionReplayOutcome

The failed outcome.