Table of Contents

Class DelegateConfigurationExtensions

Namespace
MassTransit
Assembly
MassTransit.Abstractions.dll
public static class DelegateConfigurationExtensions
Inheritance
DelegateConfigurationExtensions
Inherited Members

Methods

UseExecuteAsync<TContext>(IPipeConfigurator<TContext>, Func<TContext, Task>)

Executes an asynchronous method on the pipe

public static void UseExecuteAsync<TContext>(this IPipeConfigurator<TContext> configurator, Func<TContext, Task> callback) where TContext : class, PipeContext

Parameters

configurator IPipeConfigurator<TContext>

The pipe configurator

callback Func<TContext, Task>

The callback to invoke

Type Parameters

TContext

The context type

UseExecute<TContext>(IPipeConfigurator<TContext>, Action<TContext>)

Executes a synchronous method on the pipe

public static void UseExecute<TContext>(this IPipeConfigurator<TContext> configurator, Action<TContext> callback) where TContext : class, PipeContext

Parameters

configurator IPipeConfigurator<TContext>

The pipe configurator

callback Action<TContext>

The callback to invoke

Type Parameters

TContext

The context type