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
optionsInboxDeduplicationOptions
Fields
DuplicateItemKey
The context item set to true for a suppressed duplicate.
public const string DuplicateItemKey = "anyprotocol.inbox.duplicate"
Field Value
Methods
InvokeAsync(IMessageContext, MessageFilterDelegate)
Performs the invoke async operation.
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.