Struct OnFallbackArguments<TResult>
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
ResilienceContextThe 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
Outcome
Gets the outcome that caused the fallback to be executed.
public Outcome<TResult> Outcome { get; }
Property Value
- Outcome<TResult>