Table of Contents

Class IdempotentReceiverResult<TResult>

Namespace
PatternKit.Messaging.Reliability
Assembly
PatternKit.Core.dll

Result returned by an idempotent receiver.

public sealed class IdempotentReceiverResult<TResult>

Type Parameters

TResult

The 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

string

Processed

Gets whether the handler ran for this invocation.

public bool Processed { get; }

Property Value

bool

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

IdempotentReceiverStatus

Methods

Duplicate(string)

Creates a duplicate result.

public static IdempotentReceiverResult<TResult> Duplicate(string key)

Parameters

key string

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

key string
result TResult

Returns

IdempotentReceiverResult<TResult>

Replayed(string, TResult)

Creates a replayed result.

public static IdempotentReceiverResult<TResult> Replayed(string key, TResult result)

Parameters

key string
result TResult

Returns

IdempotentReceiverResult<TResult>