Table of Contents

Class ChaosFaultStrategyOptions

Namespace
Polly.Simmy.Fault
Assembly
Polly.Core.dll

Represents the options for the fault chaos strategy.

public class ChaosFaultStrategyOptions : ChaosStrategyOptions
Inheritance
ChaosFaultStrategyOptions
Inherited Members

Constructors

ChaosFaultStrategyOptions()

Initializes a new instance of the ChaosFaultStrategyOptions class.

public ChaosFaultStrategyOptions()

Properties

FaultGenerator

Gets or sets the fault generator to be used for fault injection.

[Required]
public Func<FaultGeneratorArguments, ValueTask<Exception?>>? FaultGenerator { get; set; }

Property Value

Func<FaultGeneratorArguments, ValueTask<Exception>>

Defaults to null. This property is required.

OnFaultInjected

Gets or sets the delegate that's raised when the fault is injected.

public Func<OnFaultInjectedArguments, ValueTask>? OnFaultInjected { get; set; }

Property Value

Func<OnFaultInjectedArguments, ValueTask>

Defaults to null.