Table of Contents

Class SendConsumeContextExecuteExtensions

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

Methods

Send(ConsumeContext, Uri, object, Action<SendContext>)

Send a message

public static Task Send(this ConsumeContext context, Uri destinationAddress, object message, Action<SendContext> callback)

Parameters

context ConsumeContext
destinationAddress Uri
message object

The message

callback Action<SendContext>

The callback for the send context

Returns

Task

The task which is completed once the Send is acknowledged by the broker

Send(ConsumeContext, Uri, object, Func<SendContext, Task>)

Send a message

public static Task Send(this ConsumeContext context, Uri destinationAddress, object message, Func<SendContext, Task> callback)

Parameters

context ConsumeContext
destinationAddress Uri
message object

The message

callback Func<SendContext, Task>

The callback for the send context

Returns

Task

The task which is completed once the Send is acknowledged by the broker

Send(ConsumeContext, Uri, object, Type, Action<SendContext>)

Send a message

public static Task Send(this ConsumeContext context, Uri destinationAddress, object message, Type messageType, Action<SendContext> callback)

Parameters

context ConsumeContext
destinationAddress Uri
message object

The message

messageType Type
callback Action<SendContext>

The callback for the send context

Returns

Task

The task which is completed once the Send is acknowledged by the broker

Send(ConsumeContext, Uri, object, Type, Func<SendContext, Task>)

Send a message

public static Task Send(this ConsumeContext context, Uri destinationAddress, object message, Type messageType, Func<SendContext, Task> callback)

Parameters

context ConsumeContext
destinationAddress Uri
message object

The message

messageType Type
callback Func<SendContext, Task>

The callback for the send context

Returns

Task

The task which is completed once the Send is acknowledged by the broker

Send<T>(ConsumeContext, Uri, object, Action<SendContext<T>>)

Send a message

public static Task Send<T>(this ConsumeContext context, Uri destinationAddress, object values, Action<SendContext<T>> callback) where T : class

Parameters

context ConsumeContext
destinationAddress Uri
values object
callback Action<SendContext<T>>

The callback for the send context

Returns

Task

The task which is completed once the Send is acknowledged by the broker

Type Parameters

T

The message type

Send<T>(ConsumeContext, Uri, object, Func<SendContext<T>, Task>)

Send a message

public static Task Send<T>(this ConsumeContext context, Uri destinationAddress, object values, Func<SendContext<T>, Task> callback) where T : class

Parameters

context ConsumeContext
destinationAddress Uri
values object
callback Func<SendContext<T>, Task>

The callback for the send context

Returns

Task

The task which is completed once the Send is acknowledged by the broker

Type Parameters

T

The message type

Send<T>(ConsumeContext, Uri, T, Action<SendContext<T>>)

Send a message

public static Task Send<T>(this ConsumeContext context, Uri destinationAddress, T message, Action<SendContext<T>> callback) where T : class

Parameters

context ConsumeContext
destinationAddress Uri
message T

The message

callback Action<SendContext<T>>

The callback for the send context

Returns

Task

The task which is completed once the Send is acknowledged by the broker

Type Parameters

T

The message type

Send<T>(ConsumeContext, Uri, T, Func<SendContext<T>, Task>)

Send a message

public static Task Send<T>(this ConsumeContext context, Uri destinationAddress, T message, Func<SendContext<T>, Task> callback) where T : class

Parameters

context ConsumeContext
destinationAddress Uri
message T

The message

callback Func<SendContext<T>, Task>

The callback for the send context

Returns

Task

The task which is completed once the Send is acknowledged by the broker

Type Parameters

T

The message type