Table of Contents

Struct FallbackPredicateArguments<TResult>

Namespace
Polly.Fallback
Assembly
Polly.Core.dll

Represents arguments used in fallback handling scenarios.

public readonly struct FallbackPredicateArguments<TResult>

Type Parameters

TResult

The type of result.

Inherited Members

Remarks

Always use the constructor when creating this struct, otherwise we do not guarantee binary compatibility.

Constructors

FallbackPredicateArguments(ResilienceContext, Outcome<TResult>)

Initializes a new instance of the FallbackPredicateArguments<TResult> struct.

public FallbackPredicateArguments(ResilienceContext context, Outcome<TResult> outcome)

Parameters

context ResilienceContext

The outcome of the resilience operation or event.

outcome Outcome<TResult>

The context in which the resilience operation or event occurred.

Properties

Context

Gets the context of this event.

public ResilienceContext Context { get; }

Property Value

ResilienceContext

Outcome

Gets the outcome of the user-specified callback.

public Outcome<TResult> Outcome { get; }

Property Value

Outcome<TResult>