Table of Contents

Interface ICommandPublisher

Namespace
AWS.Messaging.Services
Assembly
AWS.Messaging.dll

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 T

The application message that will be serialized and sent.

token CancellationToken

The cancellation token used to cancel the request.

Returns

Task<IPublishResponse>

Type Parameters

T