Interface ISendEndpoint
- Namespace
- MassTransit
- Assembly
- MassTransit.Abstractions.dll
public interface ISendEndpoint : ISendObserverConnector- Inherited Members
- Extension Methods
Methods
Send(object, 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, IPipe<SendContext> pipe, CancellationToken cancellationToken = default)Parameters
- messageobject
- The message object 
- pipeIPipe<SendContext>
- cancellationTokenCancellationToken
Returns
- Task
- The task which is completed once the Send is acknowledged by the broker 
Send(object, CancellationToken)
Sends an object as a message, using the type of the message instance.
Task Send(object message, CancellationToken cancellationToken = default)Parameters
- messageobject
- The message object 
- cancellationTokenCancellationToken
Returns
- Task
- The task which is completed once the Send is acknowledged by the broker 
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 = default)Parameters
- messageobject
- The message object 
- messageTypeType
- The type of the message (use message.GetType() if desired) 
- pipeIPipe<SendContext>
- cancellationTokenCancellationToken
Returns
- Task
- The task which is completed once the Send is acknowledged by the broker 
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 = default)Parameters
- messageobject
- The message object 
- messageTypeType
- The type of the message (use message.GetType() if desired) 
- cancellationTokenCancellationToken
Returns
- Task
- The task which is completed once the Send is acknowledged by the broker 
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 = default) where T : classParameters
- valuesobject
- The property values to initialize on the interface 
- pipeIPipe<SendContext<T>>
- cancellationTokenCancellationToken
Returns
- Task
- The task which is completed once the Send is acknowledged by the broker 
Type Parameters
- T
- The interface type to send 
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 = default) where T : classParameters
- valuesobject
- The property values to initialize on the interface 
- pipeIPipe<SendContext>
- cancellationTokenCancellationToken
Returns
- Task
- The task which is completed once the Send is acknowledged by the broker 
Type Parameters
- T
- The interface type to send 
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 = default) where T : classParameters
- valuesobject
- The property values to initialize on the interface 
- cancellationTokenCancellationToken
Returns
- Task
- The task which is completed once the Send is acknowledged by the broker 
Type Parameters
- T
- The interface type to send 
Send<T>(T, IPipe<SendContext<T>>, CancellationToken)
Send a message
Task Send<T>(T message, IPipe<SendContext<T>> pipe, CancellationToken cancellationToken = default) where T : classParameters
- messageT
- The message 
- pipeIPipe<SendContext<T>>
- cancellationTokenCancellationToken
Returns
- Task
- The task which is completed once the Send is acknowledged by the broker 
Type Parameters
- T
- The message type 
Send<T>(T, IPipe<SendContext>, CancellationToken)
Send a message
Task Send<T>(T message, IPipe<SendContext> pipe, CancellationToken cancellationToken = default) where T : classParameters
- messageT
- The message 
- pipeIPipe<SendContext>
- cancellationTokenCancellationToken
Returns
- Task
- The task which is completed once the Send is acknowledged by the broker 
Type Parameters
- T
- The message type 
Send<T>(T, CancellationToken)
Send a message
Task Send<T>(T message, CancellationToken cancellationToken = default) where T : classParameters
- messageT
- The message 
- cancellationTokenCancellationToken
Returns
- Task
- The task which is completed once the Send is acknowledged by the broker 
Type Parameters
- T
- The message type