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
ResultDecisionReplayResultThe result, when the decision was replayed.
ErrorstringWhy the request could not be replayed, when it was invalid.
NotFoundboolWhether 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
Missing
Gets the outcome for an unknown receipt identifier.
public static DecisionReplayOutcome Missing { get; }
Property Value
NotFound
Whether no decision has the receipt identifier.
public bool NotFound { get; init; }
Property Value
Result
The result, when the decision was replayed.
public DecisionReplayResult? Result { get; init; }
Property Value
Methods
Invalid(string)
Creates the outcome for a request that cannot be replayed.
public static DecisionReplayOutcome Invalid(string error)
Parameters
errorstringThe reason.
Returns
- DecisionReplayOutcome
The failed outcome.