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

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 { [System.Runtime.CompilerServices.NullableContext(2)] [System.Runtime.CompilerServices.Nullable(0)] public class ChaosFaultStrategyOptions : ChaosStrategyOptions { public Func<OnFaultInjectedArguments, ValueTask> OnFaultInjected { get; set; } [System.Runtime.CompilerServices.Nullable(new byte[] { 2, 0, 2 })] [Required] [field: System.Runtime.CompilerServices.Nullable(new byte[] { 2, 0, 2 })] public Func<FaultGeneratorArguments, ValueTask<Exception>> FaultGenerator { [return: System.Runtime.CompilerServices.Nullable(new byte[] { 2, 0, 2 })] get; [param: System.Runtime.CompilerServices.Nullable(new byte[] { 2, 0, 2 })] set; } public ChaosFaultStrategyOptions() { base.Name = "Chaos.Fault"; } } }