Table of Contents

Struct OnFaultInjectedArguments

Namespace
Polly.Simmy.Fault
Assembly
Polly.Core.dll

Arguments used by the fault chaos strategy to notify that an fault was injected.

public readonly struct OnFaultInjectedArguments
Inherited Members

Constructors

OnFaultInjectedArguments(ResilienceContext, Exception)

Initializes a new instance of the OnFaultInjectedArguments struct.

public OnFaultInjectedArguments(ResilienceContext context, Exception fault)

Parameters

context ResilienceContext

The resilience context instance.

fault Exception

The fault that was injected.

Properties

Context

Gets the resilience context instance.

public ResilienceContext Context { get; }

Property Value

ResilienceContext

Fault

Gets the fault that was injected.

public Exception Fault { get; }

Property Value

Exception