Table of Contents

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

timeout TimeSpan

The maximum time allowed for the operation.

Methods

InvokeAsync(IMessageContext, MessageFilterDelegate)

Invokes the configured operation asynchronously.

public ValueTask InvokeAsync(IMessageContext context, MessageFilterDelegate next)

Parameters

context IMessageContext

The context for the current operation.

next MessageFilterDelegate

The next.

Returns

ValueTask

A task that represents the asynchronous operation.