Interface IDestinationResolvingMessageSendingOperations<D>
Provide operations for sending messages to a destination specified as a string
[Obsolete("This feature will be removed in the next major version. See https://steeltoe.io/docs/v3/obsolete for details.")]
public interface IDestinationResolvingMessageSendingOperations<D> : IMessageSendingOperations<D>
Type Parameters
Dthe 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
destinationNamestringthe destination name to resolve
payloadobjectthe payload to send
postProcessorIMessagePostProcessorthe 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
destinationNamestringthe destination name to resolve
payloadobjectthe payload to send
headersIDictionary<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
destinationNamestringthe destination name to resolve
payloadobjectthe payload to send
headersIDictionary<string, object>the headers to send
postProcessorIMessagePostProcessorthe 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
destinationNamestringthe destination name to resolve
payloadobjectthe payload to send
postProcessorIMessagePostProcessorthe post processor to apply
cancellationTokenCancellationTokentoken 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
destinationNamestringthe destination name to resolve
payloadobjectthe payload to send
headersIDictionary<string, object>the headers to send
postProcessorIMessagePostProcessorthe post processor to apply
cancellationTokenCancellationTokentoken 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
destinationNamestringthe destination name to resolve
payloadobjectthe payload to send
headersIDictionary<string, object>the headers to send
cancellationTokenCancellationTokentoken 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
destinationNamestringthe destination name to resolve
payloadobjectthe payload to send
cancellationTokenCancellationTokentoken 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
destinationNamestringthe destination name to resolve
messageIMessagethe message to send
cancellationTokenCancellationTokentoken used to signal cancelation
Returns
- Task
a task to signal completion