Table of Contents

Struct OnFallbackArguments<TResult>

Namespace
Polly.Fallback
Assembly
Polly.Core.dll

Represents arguments used in fallback handling scenarios.

public readonly struct OnFallbackArguments<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

OnFallbackArguments(ResilienceContext, Outcome<TResult>)

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

public OnFallbackArguments(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 that caused the fallback to be executed.

public Outcome<TResult> Outcome { get; }

Property Value

Outcome<TResult>