<PackageReference Include="Polly.Core" Version="8.5.2" />

FallbackStrategyOptions<TResult>

Represents the options for configuring a fallback resilience strategy with a specific result type.
public Func<FallbackActionArguments<TResult>, ValueTask<Outcome<TResult>>> FallbackAction { get; set; }

Gets or sets the fallback action to be executed when the ShouldHandle predicate evaluates as true.

public Func<OnFallbackArguments<TResult>, ValueTask> OnFallback { get; set; }

Gets or sets event delegate that is raised when fallback happens.

public Func<FallbackPredicateArguments<TResult>, ValueTask<bool>> ShouldHandle { get; set; }

Gets or sets a predicate that determines whether the fallback should be executed for a given outcome.

Initializes a new instance of the FallbackStrategyOptions<T> class.