ISendEndpoint
ISendEndpoint
Section titled “ISendEndpoint”Namespace: MassTransit
public interface ISendEndpoint : ISendObserverConnectorImplements ISendObserverConnector
Methods
Section titled “Methods”Send<T>(T, CancellationToken)
Section titled “Send<T>(T, CancellationToken)”Send a message
Task Send<T>(T message, CancellationToken cancellationToken)Type Parameters
Section titled “Type Parameters”T
The message type
Parameters
Section titled “Parameters”message T
The message
cancellationToken CancellationToken
Returns
Section titled “Returns”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)Type Parameters
Section titled “Type Parameters”T
The message type
Parameters
Section titled “Parameters”message T
The message
cancellationToken CancellationToken
Returns
Section titled “Returns”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)Type Parameters
Section titled “Type Parameters”T
The message type
Parameters
Section titled “Parameters”message T
The message
pipe IPipe<SendContext>
cancellationToken CancellationToken
Returns
Section titled “Returns”Task
The task which is completed once the Send is acknowledged by the broker
Send(Object, CancellationToken)
Section titled “Send(Object, CancellationToken)”Sends an object as a message, using the type of the message instance.
Task Send(object message, CancellationToken cancellationToken)Parameters
Section titled “Parameters”message Object
The message object
cancellationToken CancellationToken
Returns
Section titled “Returns”Task
The task which is completed once the Send is acknowledged by the broker
Send(Object, Type, CancellationToken)
Section titled “Send(Object, Type, 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, CancellationToken cancellationToken)Parameters
Section titled “Parameters”message Object
The message object
messageType Type
The type of the message (use message.GetType() if desired)
cancellationToken CancellationToken
Returns
Section titled “Returns”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)Parameters
Section titled “Parameters”message Object
The message object
pipe IPipe<SendContext>
cancellationToken CancellationToken
Returns
Section titled “Returns”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)Parameters
Section titled “Parameters”message Object
The message object
messageType Type
The type of the message (use message.GetType() if desired)
pipe IPipe<SendContext>
cancellationToken CancellationToken
Returns
Section titled “Returns”Task
The task which is completed once the Send is acknowledged by the broker
Send<T>(Object, CancellationToken)
Section titled “Send<T>(Object, CancellationToken)”Sends an interface message, initializing the properties of the interface using the anonymous object specified
Task Send<T>(object values, CancellationToken cancellationToken)Type Parameters
Section titled “Type Parameters”T
The interface type to send
Parameters
Section titled “Parameters”values Object
The property values to initialize on the interface
cancellationToken CancellationToken
Returns
Section titled “Returns”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)Type Parameters
Section titled “Type Parameters”T
The interface type to send
Parameters
Section titled “Parameters”values Object
The property values to initialize on the interface
cancellationToken CancellationToken
Returns
Section titled “Returns”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)Type Parameters
Section titled “Type Parameters”T
The interface type to send
Parameters
Section titled “Parameters”values Object
The property values to initialize on the interface
pipe IPipe<SendContext>
cancellationToken CancellationToken
Returns
Section titled “Returns”Task
The task which is completed once the Send is acknowledged by the broker