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

ChaosBehaviorPipelineBuilderExtensions

Extension methods for adding chaos behaviors to a ResiliencePipelineBuilder.
public static TBuilder AddChaosBehavior<TBuilder>(this TBuilder builder, double injectionRate, Func<CancellationToken, ValueTask> behavior) where TBuilder : ResiliencePipelineBuilderBase

Adds a behavior chaos strategy to the builder.

public static TBuilder AddChaosBehavior<TBuilder>(this TBuilder builder, ChaosBehaviorStrategyOptions options) where TBuilder : ResiliencePipelineBuilderBase

Adds a behavior chaos strategy to the builder.