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

BehaviorPipelineBuilderExtensions

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

Adds a behavior chaos strategy to the builder.

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

Adds a behavior chaos strategy to the builder.