OnLatencyArguments
struct OnLatencyArguments
Arguments used by the latency chaos strategy to notify that a delayed occurred.
using System;
using System.Runtime.CompilerServices;
namespace Polly.Simmy.Latency
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(0)]
internal readonly struct OnLatencyArguments
{
public ResilienceContext Context { get; }
public TimeSpan Latency { get; }
public OnLatencyArguments(ResilienceContext context, TimeSpan latency)
{
Context = context;
Latency = latency;
}
}
}