Table of Contents

Class ChaosOutcomeStrategyOptions<TResult>

Namespace
Polly.Simmy.Outcomes
Assembly
Polly.Core.dll

Represents the options for the outcome chaos strategy.

public class ChaosOutcomeStrategyOptions<TResult> : ChaosStrategyOptions

Type Parameters

TResult

The type of the outcome that was injected.

Inheritance
ChaosOutcomeStrategyOptions<TResult>
Inherited Members

Constructors

ChaosOutcomeStrategyOptions()

Initializes a new instance of the ChaosOutcomeStrategyOptions<TResult> class.

public ChaosOutcomeStrategyOptions()

Properties

OnOutcomeInjected

Gets or sets the delegate that's invoked when the outcome is injected.

public Func<OnOutcomeInjectedArguments<TResult>, ValueTask>? OnOutcomeInjected { get; set; }

Property Value

Func<OnOutcomeInjectedArguments<TResult>, ValueTask>

Defaults to null.

OutcomeGenerator

Gets or sets the generator that generates the outcomes to be injected.

[Required]
public Func<OutcomeGeneratorArguments, ValueTask<Outcome<TResult>?>>? OutcomeGenerator { get; set; }

Property Value

Func<OutcomeGeneratorArguments, ValueTask<Outcome<TResult>?>>

Defaults to null. This property is required.