Interface IMessagePoller
Instances of IMessagePoller handle polling for messages from the underlying AWS service. Once messages are received from the underlying service they are deserialized into MessageEnvelope<T>; and handed off to the IMessageManager for processing.
The IMessagePoller abstracts around the underlying service and also provides the utility methods used for adjusting the message's lifecycle.
public interface IMessagePoller
Methods
StartPollingAsync(CancellationToken)
Start polling the underlying service. Polling will run indefinitely till the CancellationToken is cancelled.
Task StartPollingAsync(CancellationToken token = default)
Parameters
token
CancellationTokenOptional cancellation token to shutdown the poller.