Class LoggingFilter
- Namespace
- AnyProtocol
- Assembly
- AnyProtocol.dll
Processes messages in the logging pipeline stage.
public sealed class LoggingFilter : IMessageFilter
- Inheritance
-
LoggingFilter
- Implements
- Inherited Members
Constructors
LoggingFilter(ILogWriterFactory)
Initializes a new instance of the LoggingFilter class.
public LoggingFilter(ILogWriterFactory loggerFactory)
Parameters
loggerFactoryILogWriterFactoryThe logger factory.
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.