Class TimeoutFilter
- Namespace
- AnyProtocol
- Assembly
- AnyProtocol.dll
Processes messages in the timeout pipeline stage.
public sealed class TimeoutFilter : IMessageFilter
- Inheritance
-
TimeoutFilter
- Implements
- Inherited Members
Constructors
TimeoutFilter(TimeSpan)
Processes messages in the timeout pipeline stage.
public TimeoutFilter(TimeSpan timeout)
Parameters
timeoutTimeSpanThe maximum time allowed for the operation.
Methods
InvokeAsync(IMessageContext, MessageFilterDelegate)
Invokes the configured operation asynchronously.
public ValueTask InvokeAsync(IMessageContext context, MessageFilterDelegate next)
Parameters
contextIMessageContextThe context for the current operation.
nextMessageFilterDelegateThe next.
Returns
- ValueTask
A task that represents the asynchronous operation.