OnOutcomeInjectedArguments<TResult>
Arguments used by the outcome chaos strategy to notify that an outcome was injected.
using System.Runtime.CompilerServices;
namespace Polly.Simmy.Outcomes
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(0)]
public readonly struct OnOutcomeInjectedArguments<[System.Runtime.CompilerServices.Nullable(2)] TResult>
{
public ResilienceContext Context { get; }
[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 OnOutcomeInjectedArguments(ResilienceContext context, [System.Runtime.CompilerServices.Nullable(new byte[] {
0,
1
})] Outcome<TResult> outcome)
{
Context = context;
Outcome = outcome;
}
}
}