public AmazonSQSConsumer(IServiceProvider serviceProvider) { _serviceProvider = serviceProvider; _amazonSQSClient = serviceProvider.GetRequiredService <IAmazonSQSClient>(); _conventions = serviceProvider.GetRequiredService <IConventionsProvider>(); _options = serviceProvider.GetRequiredService <AmazonSQSOptions>(); }
public AmazonSQSClient(AmazonSQSOptions options, IAlohaSerializer serializer) { _amazonSQS = new Amazon.SQS.AmazonSQSClient( new BasicAWSCredentials(options.AccessKey, options.SecretKey), new AmazonSQSConfig { ServiceURL = options.ServiceUrl }); _options = options; _serializer = serializer; }
public AmazonSQSConsumerClient(string groupId, IOptions <AmazonSQSOptions> options) { _groupId = groupId; _amazonSQSOptions = options.Value; }
public ConventionsProvider(AmazonSQSOptions options) { _options = options; }