Skip to content

ISendEndpoint

Namespace: MassTransit

public interface ISendEndpoint : ISendObserverConnector

Implements ISendObserverConnector

Send a message

Task Send<T>(T message, CancellationToken cancellationToken)

T
The message type

message T
The message

cancellationToken CancellationToken

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

Send<T>(T, IPipe<SendContext<T>>, CancellationToken)

Section titled “Send<T>(T, IPipe<SendContext<T>>, CancellationToken)”

Send a message

Task Send<T>(T message, IPipe<SendContext<T>> pipe, CancellationToken cancellationToken)

T
The message type

message T
The message

pipe IPipe<SendContext<T>>

cancellationToken CancellationToken

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

Send<T>(T, IPipe<SendContext>, CancellationToken)

Section titled “Send<T>(T, IPipe<SendContext>, CancellationToken)”

Send a message

Task Send<T>(T message, IPipe<SendContext> pipe, CancellationToken cancellationToken)

T
The message type

message T
The message

pipe IPipe<SendContext>

cancellationToken CancellationToken

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

Sends an object as a message, using the type of the message instance.

Task Send(object message, CancellationToken cancellationToken)

message Object
The message object

cancellationToken CancellationToken

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

Sends an object as a message, using the message type specified. If the object cannot be cast to the specified message type, an exception will be thrown.

Task Send(object message, Type messageType, CancellationToken cancellationToken)

message Object
The message object

messageType Type
The type of the message (use message.GetType() if desired)

cancellationToken CancellationToken

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

Send(Object, IPipe<SendContext>, CancellationToken)

Section titled “Send(Object, IPipe<SendContext>, CancellationToken)”

Sends an object as a message.

Task Send(object message, IPipe<SendContext> pipe, CancellationToken cancellationToken)

message Object
The message object

pipe IPipe<SendContext>

cancellationToken CancellationToken

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

Send(Object, Type, IPipe<SendContext>, CancellationToken)

Section titled “Send(Object, Type, IPipe<SendContext>, CancellationToken)”

Sends an object as a message, using the message type specified. If the object cannot be cast to the specified message type, an exception will be thrown.

Task Send(object message, Type messageType, IPipe<SendContext> pipe, CancellationToken cancellationToken)

message Object
The message object

messageType Type
The type of the message (use message.GetType() if desired)

pipe IPipe<SendContext>

cancellationToken CancellationToken

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

Sends an interface message, initializing the properties of the interface using the anonymous object specified

Task Send<T>(object values, CancellationToken cancellationToken)

T
The interface type to send

values Object
The property values to initialize on the interface

cancellationToken CancellationToken

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

Send<T>(Object, IPipe<SendContext<T>>, CancellationToken)

Section titled “Send<T>(Object, IPipe<SendContext<T>>, CancellationToken)”

Sends an interface message, initializing the properties of the interface using the anonymous object specified

Task Send<T>(object values, IPipe<SendContext<T>> pipe, CancellationToken cancellationToken)

T
The interface type to send

values Object
The property values to initialize on the interface

pipe IPipe<SendContext<T>>

cancellationToken CancellationToken

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

Send<T>(Object, IPipe<SendContext>, CancellationToken)

Section titled “Send<T>(Object, IPipe<SendContext>, CancellationToken)”

Sends an interface message, initializing the properties of the interface using the anonymous object specified

Task Send<T>(object values, IPipe<SendContext> pipe, CancellationToken cancellationToken)

T
The interface type to send

values Object
The property values to initialize on the interface

pipe IPipe<SendContext>

cancellationToken CancellationToken

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