Table of Contents

Class InboxDeduplicationFilter

Namespace
AnyProtocol
Assembly
AnyProtocol.dll

Prevents repeated execution of one-way messages with the same message ID.

public sealed class InboxDeduplicationFilter : IMessageFilter
Inheritance
InboxDeduplicationFilter
Implements
Inherited Members

Constructors

InboxDeduplicationFilter(InboxDeduplicationOptions)

Creates an inbox filter for one named store.

public InboxDeduplicationFilter(InboxDeduplicationOptions options)

Parameters

options InboxDeduplicationOptions

Fields

DuplicateItemKey

The context item set to true for a suppressed duplicate.

public const string DuplicateItemKey = "anyprotocol.inbox.duplicate"

Field Value

string

Methods

InvokeAsync(IMessageContext, MessageFilterDelegate)

Performs the invoke async operation.

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.