Table of Contents

Interface IEventPublisher

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

This interface allows publishing messages from application code to event-based Amazon services. It exposes the PublishAsync<T>(T, CancellationToken) method which takes in a user-defined message to publish to an event-based Amazon service.

public interface IEventPublisher

Methods

PublishAsync<T>(T, CancellationToken)

Publishes the application message to an event-based Amazon service.

Task<IPublishResponse> PublishAsync<T>(T message, CancellationToken token = default)

Parameters

message T

The application message that will be serialized and published.

token CancellationToken

The cancellation token used to cancel the request.

Returns

Task<IPublishResponse>

Type Parameters

T