Interface ICommandPublisher
This interface allows sending messages from application code to recipient-specific Amazon services. It exposes the SendAsync<T>(T, CancellationToken) method which takes in a user-defined message to send to a recipient-specific Amazon service.
public interface ICommandPublisher
Methods
SendAsync<T>(T, CancellationToken)
Sends the application message to a recipient-specific Amazon service.
Task<IPublishResponse> SendAsync<T>(T message, CancellationToken token = default)
Parameters
message
TThe application message that will be serialized and sent.
token
CancellationTokenThe cancellation token used to cancel the request.
Returns
Type Parameters
T