Table of Contents

Interface IDestinationResolvingMessageSendingOperations<D>

Namespace
Steeltoe.Messaging.Core
Assembly
Steeltoe.Messaging.Abstractions.dll

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

destinationName string

the destination name to resolve

payload object

the payload to send

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 string

the destination name to resolve

payload object

the payload to send

postProcessor IMessagePostProcessor

the 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 string

the destination name to resolve

payload object

the 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 string

the destination name to resolve

payload object

the payload to send

headers IDictionary<string, object>

the headers to send

postProcessor IMessagePostProcessor

the 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 string

the destination name to resolve

payload object

the payload to send

postProcessor IMessagePostProcessor

the post processor to apply

cancellationToken CancellationToken

token 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 string

the destination name to resolve

payload object

the payload to send

headers IDictionary<string, object>

the headers to send

postProcessor IMessagePostProcessor

the post processor to apply

cancellationToken CancellationToken

token 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 string

the destination name to resolve

payload object

the payload to send

headers IDictionary<string, object>

the headers to send

cancellationToken CancellationToken

token 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 string

the destination name to resolve

payload object

the payload to send

cancellationToken CancellationToken

token 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

destinationName string

the destination name to resolve

message IMessage

the message to send

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 string

the destination name to resolve

message IMessage

the message to send

cancellationToken CancellationToken

token used to signal cancelation

Returns

Task

a task to signal completion