OnFallbackArguments<TResult>
Represents arguments used in fallback handling scenarios.
using Polly.Utils;
using System.Runtime.CompilerServices;
namespace Polly.Fallback
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(0)]
public readonly struct OnFallbackArguments<[System.Runtime.CompilerServices.Nullable(2)] TResult> : IOutcomeArguments<TResult>
{
[System.Runtime.CompilerServices.Nullable(new byte[] {
0,
1
})]
[field: System.Runtime.CompilerServices.Nullable(new byte[] {
0,
1
})]
public Outcome<TResult> Outcome {
[return: System.Runtime.CompilerServices.Nullable(new byte[] {
0,
1
})]
get;
}
public ResilienceContext Context { get; }
public OnFallbackArguments(ResilienceContext context, [System.Runtime.CompilerServices.Nullable(new byte[] {
0,
1
})] Outcome<TResult> outcome)
{
Outcome = outcome;
Context = context;
}
}
}