Пример #1
0
 public AmazonSQSConsumer(IServiceProvider serviceProvider)
 {
     _serviceProvider = serviceProvider;
     _amazonSQSClient = serviceProvider.GetRequiredService <IAmazonSQSClient>();
     _conventions     = serviceProvider.GetRequiredService <IConventionsProvider>();
     _options         = serviceProvider.GetRequiredService <AmazonSQSOptions>();
 }
Пример #2
0
        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;
        }
Пример #3
0
 public AmazonSQSConsumerClient(string groupId, IOptions <AmazonSQSOptions> options)
 {
     _groupId          = groupId;
     _amazonSQSOptions = options.Value;
 }
Пример #4
0
 public ConventionsProvider(AmazonSQSOptions options)
 {
     _options = options;
 }