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

ChaosStrategyOptions

The options associated with the ChaosStrategy.
public bool Enabled { get; set; }

Gets or sets a value indicating whether or not the chaos strategy is enabled for a given execution.

Gets or sets the enable generator that indicates whether or not the chaos strategy is enabled for a given execution.

public double InjectionRate { get; set; }

Gets or sets the injection rate for a given execution, which the value should be between [0, 1] (inclusive).

Gets or sets the injection rate generator for a given execution, which the value should be between [0, 1] (inclusive).

public Func<double> Randomizer { get; set; }

Gets or sets the Randomizer generator instance that is used to evaluate the injection rate.