Interface IDestinationResolvingMessageSendingOperations<D>
Provide operations for sending messages to a destination specified as a string
Inherited Members
Namespace: Steeltoe.Messaging.Core
Assembly: Steeltoe.Messaging.Abstractions.dll
Syntax
public interface IDestinationResolvingMessageSendingOperations<D> : IMessageSendingOperations<D>
Type Parameters
Name | Description |
---|---|
D | the type of the destination |
Methods
| Edit this page View SourceConvertAndSend(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.
Declaration
void ConvertAndSend(string destinationName, object payload)
Parameters
Type | Name | Description |
---|---|---|
System.String | destinationName | the destination name to resolve |
System.Object | payload | the payload to send |
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.
Declaration
void ConvertAndSend(string destinationName, object payload, IDictionary<string, object> headers)
Parameters
Type | Name | Description |
---|---|---|
System.String | destinationName | the destination name to resolve |
System.Object | payload | the payload to send |
IDictionary<System.String, System.Object> | headers | 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.
Declaration
void ConvertAndSend(string destinationName, object payload, IDictionary<string, object> headers, IMessagePostProcessor postProcessor)
Parameters
Type | Name | Description |
---|---|---|
System.String | destinationName | the destination name to resolve |
System.Object | payload | the payload to send |
IDictionary<System.String, System.Object> | headers | the headers to send |
IMessagePostProcessor | postProcessor | the post processor to apply |
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.
Declaration
void ConvertAndSend(string destinationName, object payload, IMessagePostProcessor postProcessor)
Parameters
Type | Name | Description |
---|---|---|
System.String | destinationName | the destination name to resolve |
System.Object | payload | the payload to send |
IMessagePostProcessor | postProcessor | the post processor to apply |
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.
Declaration
Task ConvertAndSendAsync(string destinationName, object payload, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | destinationName | the destination name to resolve |
System.Object | payload | the payload to send |
CancellationToken | cancellationToken | token used to signal cancelation |
Returns
Type | Description |
---|---|
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.
Declaration
Task ConvertAndSendAsync(string destinationName, object payload, IDictionary<string, object> headers, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | destinationName | the destination name to resolve |
System.Object | payload | the payload to send |
IDictionary<System.String, System.Object> | headers | the headers to send |
CancellationToken | cancellationToken | token used to signal cancelation |
Returns
Type | Description |
---|---|
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.
Declaration
Task ConvertAndSendAsync(string destinationName, object payload, IDictionary<string, object> headers, IMessagePostProcessor postProcessor, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | destinationName | the destination name to resolve |
System.Object | payload | the payload to send |
IDictionary<System.String, System.Object> | headers | the headers to send |
IMessagePostProcessor | postProcessor | the post processor to apply |
CancellationToken | cancellationToken | token used to signal cancelation |
Returns
Type | Description |
---|---|
Task | a task to signal completion |
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.
Declaration
Task ConvertAndSendAsync(string destinationName, object payload, IMessagePostProcessor postProcessor, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | destinationName | the destination name to resolve |
System.Object | payload | the payload to send |
IMessagePostProcessor | postProcessor | the post processor to apply |
CancellationToken | cancellationToken | token used to signal cancelation |
Returns
Type | Description |
---|---|
Task | a task to signal completion |
Send(String, IMessage)
Resolve the given destination name to a destination and send a message to it.
Declaration
void Send(string destinationName, IMessage message)
Parameters
Type | Name | Description |
---|---|---|
System.String | destinationName | the destination name to resolve |
IMessage | message | the message to send |
SendAsync(String, IMessage, CancellationToken)
Resolve the given destination name to a destination and send a message to it.
Declaration
Task SendAsync(string destinationName, IMessage message, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | destinationName | the destination name to resolve |
IMessage | message | the message to send |
CancellationToken | cancellationToken | token used to signal cancelation |
Returns
Type | Description |
---|---|
Task | a task to signal completion |