Table of Contents

Class DelegateFilter<TContext>

Namespace
MassTransit.Middleware
Assembly
MassTransit.Abstractions.dll
public class DelegateFilter<TContext> : IFilter<TContext>, IProbeSite where TContext : class, PipeContext

Type Parameters

TContext
Inheritance
DelegateFilter<TContext>
Implements
IFilter<TContext>
Inherited Members
Extension Methods

Constructors

DelegateFilter(Action<TContext>)

public DelegateFilter(Action<TContext> callback)

Parameters

callback Action<TContext>

Methods

Send(TContext, IPipe<TContext>)

Sends a context to a filter, such that it can be processed and then passed to the specified output pipe for further processing.

public Task Send(TContext context, IPipe<TContext> next)

Parameters

context TContext

The pipe context type

next IPipe<TContext>

The next pipe in the pipeline

Returns

Task

An awaitable Task