public SQSConsumer(IOptions <SQSClientOptions> options, ILogger <SQSConsumer <TData> > logger, IApplicationNameService applicationNameService, ISQSClientFactory sqsClientFactory) { _options = options.Value; _logger = logger; _applicationNameService = applicationNameService; _amazonSqsClient = sqsClientFactory.From(_options); }
public QueuePollingTask(ILogger<QueuePollingTask> logger, IQueueMessageProcessor processor, ISQSClientFactory sqsClientFactory) { this.logger = logger; this.processor = processor; sqsClient = sqsClientFactory.CreateSQSClient(); }