AmazonSQSProcessor

Processes messages from Amazon SQS queues for SimpleMessageBus.

Syntax

public class AmazonSQSProcessor : IQueueProcessor

Inheritance

Implements

Constructors

AmazonSQSProcessor

public AmazonSQSProcessor(IMessageDispatcher dispatcher, IServiceScopeFactory serviceScopeFactory)
Creates a new instance of the .

Parameters

Exceptions

  • [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception): dispatcher is null or serviceScopeFactory is null.

Methods

ProcessQueue

public Task<Message> ProcessQueue(Message sqsMessage, ILogger logger)
Processes a message from the SQS queue.

Parameters

  • sqsMessage Message: The SQS message to process.
  • logger ILogger: The logger instance.

Returns

Task<Message> A reference for the asynchronous function.