ChaosOutcomeStrategyOptions<TResult>
Represents the options for the outcome chaos strategy.
using System;
using System.ComponentModel.DataAnnotations;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
namespace Polly.Simmy.Outcomes
{
public class ChaosOutcomeStrategyOptions<[Nullable(2)] TResult> : ChaosStrategyOptions
{
[Nullable(new byte[] {
2,
0,
1
})]
[field: Nullable(new byte[] {
2,
0,
1
})]
public Func<OnOutcomeInjectedArguments<TResult>, ValueTask> OnOutcomeInjected {
[return: Nullable(new byte[] {
2,
0,
1
})]
get;
[param: Nullable(new byte[] {
2,
0,
1
})]
set;
}
[Nullable(new byte[] {
2,
0,
0,
1
})]
[Required]
[field: Nullable(new byte[] {
2,
0,
0,
1
})]
public Func<OutcomeGeneratorArguments, ValueTask<Outcome<TResult>?>> OutcomeGenerator {
[return: Nullable(new byte[] {
2,
0,
0,
1
})]
get;
[param: Nullable(new byte[] {
2,
0,
0,
1
})]
set;
}
public ChaosOutcomeStrategyOptions()
{
base.Name = "Chaos.Outcome";
}
}
}