Struct FallbackActionArguments<TResult>
Arguments used by FallbackAction.
public readonly struct FallbackActionArguments<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
FallbackActionArguments(ResilienceContext, Outcome<TResult>)
Initializes a new instance of the FallbackActionArguments<TResult> struct.
public FallbackActionArguments(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 should be handled by the fallback.
public Outcome<TResult> Outcome { get; }
Property Value
- Outcome<TResult>