Class IdempotentReceiverResult<TResult>
- Namespace
- PatternKit.Messaging.Reliability
- Assembly
- PatternKit.Core.dll
Result returned by an idempotent receiver.
public sealed class IdempotentReceiverResult<TResult>
Type Parameters
TResultThe handler result type.
- Inheritance
-
IdempotentReceiverResult<TResult>
- Inherited Members
Properties
Key
The idempotency key used for the invocation, when available.
public string? Key { get; }
Property Value
Processed
Gets whether the handler ran for this invocation.
public bool Processed { get; }
Property Value
Result
The processed or replayed handler result, when available.
public TResult? Result { get; }
Property Value
- TResult
Status
The receiver outcome.
public IdempotentReceiverStatus Status { get; }
Property Value
Methods
Duplicate(string)
Creates a duplicate result.
public static IdempotentReceiverResult<TResult> Duplicate(string key)
Parameters
keystring
Returns
- IdempotentReceiverResult<TResult>
MissingKey()
Creates a missing-key result.
public static IdempotentReceiverResult<TResult> MissingKey()
Returns
- IdempotentReceiverResult<TResult>
ProcessedResult(string?, TResult)
Creates a processed result.
public static IdempotentReceiverResult<TResult> ProcessedResult(string? key, TResult result)
Parameters
keystringresultTResult
Returns
- IdempotentReceiverResult<TResult>
Replayed(string, TResult)
Creates a replayed result.
public static IdempotentReceiverResult<TResult> Replayed(string key, TResult result)
Parameters
keystringresultTResult
Returns
- IdempotentReceiverResult<TResult>