Table of Contents

Class ChaosBehaviorStrategyOptions

Namespace
Polly.Simmy.Behavior
Assembly
Polly.Core.dll

Represents the options for the behavior chaos strategy.

public class ChaosBehaviorStrategyOptions : ChaosStrategyOptions
Inheritance
ChaosBehaviorStrategyOptions
Inherited Members

Constructors

ChaosBehaviorStrategyOptions()

Initializes a new instance of the ChaosBehaviorStrategyOptions class.

public ChaosBehaviorStrategyOptions()

Properties

BehaviorGenerator

Gets or sets the behavior that is going to be injected for a given execution.

[Required]
public Func<BehaviorGeneratorArguments, ValueTask>? BehaviorGenerator { get; set; }

Property Value

Func<BehaviorGeneratorArguments, ValueTask>

Defaults to null. This property is required.

OnBehaviorInjected

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

public Func<OnBehaviorInjectedArguments, ValueTask>? OnBehaviorInjected { get; set; }

Property Value

Func<OnBehaviorInjectedArguments, ValueTask>

Defaults to null.