Interface ITimeoutManager
- Namespace
- Excalibur.Dispatch.Resilience.Polly
- Assembly
- Excalibur.Dispatch.Resilience.Polly.dll
Centralized timeout management service to avoid hardcoded timeouts.
public interface ITimeoutManager
- Extension Methods
Properties
DefaultTimeout
Gets the default timeout for all operations.
TimeSpan DefaultTimeout { get; }
Property Value
- TimeSpan
The fallback timeout applied when no named override exists.
Methods
GetTimeout(string)
Gets the configured timeout for the specified operation.
TimeSpan GetTimeout(string operationName)
Parameters
operationNamestringThe name of the operation.
Returns
- TimeSpan
The configured timeout for the operation.
RegisterTimeout(string, TimeSpan)
Registers a custom timeout for a specific operation.
void RegisterTimeout(string operationName, TimeSpan timeout)