Struct OnTimeoutArguments
Arguments used by the timeout strategy to notify that a timeout occurred.
public readonly struct OnTimeoutArguments
- Inherited Members
Remarks
Always use the constructor when creating this struct, otherwise we do not guarantee binary compatibility.
Constructors
OnTimeoutArguments(ResilienceContext, TimeSpan)
Initializes a new instance of the OnTimeoutArguments struct.
public OnTimeoutArguments(ResilienceContext context, TimeSpan timeout)
Parameters
context
ResilienceContextThe context associated with the execution of a user-provided callback.
timeout
TimeSpanThe timeout value assigned.
Properties
Context
Gets the context associated with the execution of a user-provided callback.
public ResilienceContext Context { get; }
Property Value
Timeout
Gets the timeout value assigned.
public TimeSpan Timeout { get; }