Interface IDestinationResolvingMessageSendingOperations<D>
Provide operations for sending messages to a destination specified as a string
public interface IDestinationResolvingMessageSendingOperations<D> : IMessageSendingOperations<D>
Type Parameters
D
the type of the destination
- Inherited Members
Methods
ConvertAndSend(string, object)
Resolve the given destination name to a destination, convert the payload object to serialized form, possibly using a message converter, wrap it as a message and send it to the resolved destination.
void ConvertAndSend(string destinationName, object payload)
Parameters
ConvertAndSend(string, object, IMessagePostProcessor)
Resolve the given destination name to a destination, convert the payload object to serialized form, possibly using a message converter, wrap it as a message, apply the post processor, and send it to the resolved destination.
void ConvertAndSend(string destinationName, object payload, IMessagePostProcessor postProcessor)
Parameters
destinationName
stringthe destination name to resolve
payload
objectthe payload to send
postProcessor
IMessagePostProcessorthe post processor to apply
ConvertAndSend(string, object, IDictionary<string, object>)
Resolve the given destination name to a destination, convert the payload object to serialized form, possibly using a message converter, wrap it as a message with the given headers, and send it to the resolved destination.
void ConvertAndSend(string destinationName, object payload, IDictionary<string, object> headers)
Parameters
destinationName
stringthe destination name to resolve
payload
objectthe payload to send
headers
IDictionary<string, object>the headers to send
ConvertAndSend(string, object, IDictionary<string, object>, IMessagePostProcessor)
Resolve the given destination name to a destination, convert the payload object to serialized form, possibly using a message converter, wrap it as a message with the given headers, apply the post processor and send it to the resolved destination.
void ConvertAndSend(string destinationName, object payload, IDictionary<string, object> headers, IMessagePostProcessor postProcessor)
Parameters
destinationName
stringthe destination name to resolve
payload
objectthe payload to send
headers
IDictionary<string, object>the headers to send
postProcessor
IMessagePostProcessorthe post processor to apply
ConvertAndSendAsync(string, object, IMessagePostProcessor, CancellationToken)
Resolve the given destination name to a destination, convert the payload object to serialized form, possibly using a message converter, wrap it as a message, apply the post processor, and send it to the resolved destination.
Task ConvertAndSendAsync(string destinationName, object payload, IMessagePostProcessor postProcessor, CancellationToken cancellationToken = default)
Parameters
destinationName
stringthe destination name to resolve
payload
objectthe payload to send
postProcessor
IMessagePostProcessorthe post processor to apply
cancellationToken
CancellationTokentoken used to signal cancelation
Returns
- Task
a task to signal completion
ConvertAndSendAsync(string, object, IDictionary<string, object>, IMessagePostProcessor, CancellationToken)
Resolve the given destination name to a destination, convert the payload object to serialized form, possibly using a message converter, wrap it as a message with the given headers, apply the post processor and send it to the resolved destination.
Task ConvertAndSendAsync(string destinationName, object payload, IDictionary<string, object> headers, IMessagePostProcessor postProcessor, CancellationToken cancellationToken = default)
Parameters
destinationName
stringthe destination name to resolve
payload
objectthe payload to send
headers
IDictionary<string, object>the headers to send
postProcessor
IMessagePostProcessorthe post processor to apply
cancellationToken
CancellationTokentoken used to signal cancelation
Returns
- Task
a task to signal completion
ConvertAndSendAsync(string, object, IDictionary<string, object>, CancellationToken)
Resolve the given destination name to a destination, convert the payload object to serialized form, possibly using a message converter, wrap it as a message with the given headers, and send it to the resolved destination.
Task ConvertAndSendAsync(string destinationName, object payload, IDictionary<string, object> headers, CancellationToken cancellationToken = default)
Parameters
destinationName
stringthe destination name to resolve
payload
objectthe payload to send
headers
IDictionary<string, object>the headers to send
cancellationToken
CancellationTokentoken used to signal cancelation
Returns
- Task
a task to signal completion
ConvertAndSendAsync(string, object, CancellationToken)
Resolve the given destination name to a destination, convert the payload object to serialized form, possibly using a message converter, wrap it as a message and send it to the resolved destination.
Task ConvertAndSendAsync(string destinationName, object payload, CancellationToken cancellationToken = default)
Parameters
destinationName
stringthe destination name to resolve
payload
objectthe payload to send
cancellationToken
CancellationTokentoken used to signal cancelation
Returns
- Task
a task to signal completion
Send(string, IMessage)
Resolve the given destination name to a destination and send a message to it.
void Send(string destinationName, IMessage message)
Parameters
SendAsync(string, IMessage, CancellationToken)
Resolve the given destination name to a destination and send a message to it.
Task SendAsync(string destinationName, IMessage message, CancellationToken cancellationToken = default)
Parameters
destinationName
stringthe destination name to resolve
message
IMessagethe message to send
cancellationToken
CancellationTokentoken used to signal cancelation
Returns
- Task
a task to signal completion