Interface IDestinationResolvingMessageReceivingOperations<D>
Provides operations for receiving messages from a destination specifed as a resolvable string
public interface IDestinationResolvingMessageReceivingOperations<D> : IMessageReceivingOperations<D>
Type Parameters
D
the destination type
- Inherited Members
Methods
Receive(string)
Resolve the given destination and receive a message from it
IMessage Receive(string destinationName)
Parameters
destinationName
stringthe destination name to resolve
Returns
- IMessage
the received message
ReceiveAndConvertAsync<T>(string, CancellationToken)
Resolve the given destination, receive a message from it, convert the payload to the specified target type
Task<T> ReceiveAndConvertAsync<T>(string destinationName, CancellationToken cancellationToken = default)
Parameters
destinationName
stringthe destination name to resolve
cancellationToken
CancellationTokena token used to cancel the operation
Returns
- Task<T>
a task to signal completion
Type Parameters
T
the target type
ReceiveAndConvert<T>(string)
Resolve the given destination, receive a message from it, convert the payload to the specified target type
T ReceiveAndConvert<T>(string destinationName)
Parameters
destinationName
stringthe destination name to resolve
Returns
- T
the received message
Type Parameters
T
the target type
ReceiveAsync(string, CancellationToken)
Resolve the given destination and receive a message from it
Task<IMessage> ReceiveAsync(string destinationName, CancellationToken cancellationToken = default)
Parameters
destinationName
stringthe destination name to resolve
cancellationToken
CancellationTokena token used to cancel the operation