RetrieveMessagesAsync Method
Definition
- Namespace
- Savvyio.Extensions.SimpleQueueService
- Assemblies
- Savvyio.Extensions.SimpleQueueService.dll
RetrieveMessagesAsync(CancellationToken)
Receive one or more message(s) asynchronous from AWS SQS.
protected virtual IAsyncEnumerable<IMessage<TRequest>> RetrieveMessagesAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenThe cancellation token of an asynchronous operations.
Returns
- IAsyncEnumerable<IMessage<TRequest>>
A task that represents the asynchronous operation. The task result contains a sequence of IMessage<T> whose generic type argument is IRequest.