OnTimeoutArguments
Arguments used by the timeout strategy to notify that a timeout occurred.
using System;
using System.Runtime.CompilerServices;
namespace Polly.Timeout
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(0)]
public sealed class OnTimeoutArguments
{
public ResilienceContext Context { get; }
public Exception Exception { get; }
public TimeSpan Timeout { get; }
public OnTimeoutArguments(ResilienceContext context, Exception exception, TimeSpan timeout)
{
Context = context;
Exception = exception;
Timeout = timeout;
}
}
}