<PackageReference Include="Polly.Core" Version="8.4.1" />

ChaosFaultStrategyOptions

Represents the options for the fault chaos strategy.
using System; using System.ComponentModel.DataAnnotations; using System.Runtime.CompilerServices; using System.Threading.Tasks; namespace Polly.Simmy.Fault { [NullableContext(2)] [Nullable(0)] public class ChaosFaultStrategyOptions : ChaosStrategyOptions { public Func<OnFaultInjectedArguments, ValueTask> OnFaultInjected { get; set; } [Nullable(new byte[] { 2, 0, 2 })] [Required] [field: Nullable(new byte[] { 2, 0, 2 })] public Func<FaultGeneratorArguments, ValueTask<Exception>> FaultGenerator { [return: Nullable(new byte[] { 2, 0, 2 })] get; [param: Nullable(new byte[] { 2, 0, 2 })] set; } public ChaosFaultStrategyOptions() { base.Name = "Chaos.Fault"; } } }