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

FaultStrategyOptions

Represents the options for the Fault chaos strategy.
using System; using System.Runtime.CompilerServices; using System.Threading.Tasks; namespace Polly.Simmy.Fault { [System.Runtime.CompilerServices.NullableContext(2)] [System.Runtime.CompilerServices.Nullable(0)] internal class FaultStrategyOptions : MonkeyStrategyOptions { public Func<OnFaultInjectedArguments, ValueTask> OnFaultInjected { get; set; } [System.Runtime.CompilerServices.Nullable(new byte[] { 2, 0, 2 })] [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 Exception Fault { get; set; } } }