Table of Contents

Struct OnLatencyInjectedArguments

Namespace
Polly.Simmy.Latency
Assembly
Polly.Core.dll

Arguments used by the latency chaos strategy to notify that a latency was injected.

public readonly struct OnLatencyInjectedArguments
Inherited Members

Constructors

OnLatencyInjectedArguments(ResilienceContext, TimeSpan)

Initializes a new instance of the OnLatencyInjectedArguments struct.

public OnLatencyInjectedArguments(ResilienceContext context, TimeSpan latency)

Parameters

context ResilienceContext

The resilience context instance.

latency TimeSpan

The latency that was injected.

Properties

Context

Gets the resilience context instance.

public ResilienceContext Context { get; }

Property Value

ResilienceContext

Latency

Gets the latency that was injected.

public TimeSpan Latency { get; }

Property Value

TimeSpan