Table of Contents

RetrieveMessagesAsync Method

Definition

Namespace
Savvyio.Extensions.SimpleQueueService
Assemblies
Savvyio.Extensions.SimpleQueueService.dll
Source
src/Savvyio.Extensions.SimpleQueueService/AmazonMessage.cs

RetrieveMessagesAsync(CancellationToken)

Receive one or more message(s) asynchronous from AWS SQS.

protected virtual IAsyncEnumerable<IMessage<TRequest>> RetrieveMessagesAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

The 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.