Interface IEventPublisher
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
TThe application message that will be serialized and published.
token
CancellationTokenThe cancellation token used to cancel the request.
Returns
Type Parameters
T