public async Task SendAndReceiveFromSQS()
 {
     var options = new SqsOptions
     {
         ConnectionString = AWSTestConstants.DefaultSQSConnectionString,
     };
     var adapterFactory = new SQSAdapterFactory(SQS_STREAM_PROVIDER_NAME, options, new HashRingStreamQueueMapperOptions(), new SimpleQueueCacheOptions(), null, Options.Create(new ClusterOptions()), null, null);
     adapterFactory.Init();
     await SendAndReceiveFromQueueAdapter(adapterFactory);
 }
Beispiel #2
0
        public async Task SendAndReceiveFromSQS()
        {
            var options = new SqsStreamOptions
            {
                ConnectionString = AWSTestConstants.DefaultSQSConnectionString,
                ClusterId        = this.clusterId
            };
            var adapterFactory = new SQSAdapterFactory(SQS_STREAM_PROVIDER_NAME, options, null, Options.Create(new ClusterOptions()), null, null);

            adapterFactory.Init();
            await SendAndReceiveFromQueueAdapter(adapterFactory);
        }
Beispiel #3
0
        public async Task SendAndReceiveFromSQS()
        {
            var properties = new Dictionary<string, string>
                {
                    {SQSAdapterFactory.DataConnectionStringPropertyName, AWSTestConstants.DefaultSQSConnectionString},
                    {SQSAdapterFactory.DeploymentIdPropertyName, deploymentId}
                };
            var config = new ProviderConfiguration(properties, "type", "name");

            var adapterFactory = new SQSAdapterFactory();
            adapterFactory.Init(config, SQS_STREAM_PROVIDER_NAME, LogManager.GetLogger("SQSAdapter", LoggerType.Application), null);
            await SendAndReceiveFromQueueAdapter(adapterFactory, config);
        }
Beispiel #4
0
        public async Task SendAndReceiveFromSQS()
        {
            var properties = new Dictionary <string, string>
            {
                { SQSAdapterFactory.DataConnectionStringPropertyName, AWSTestConstants.DefaultSQSConnectionString },
                { SQSAdapterFactory.DeploymentIdPropertyName, deploymentId }
            };
            var config = new ProviderConfiguration(properties, "type", "name");

            var adapterFactory = new SQSAdapterFactory();

            adapterFactory.Init(config, SQS_STREAM_PROVIDER_NAME, new LoggerWrapper <SQSAdapter>(NullLoggerFactory.Instance), this.fixture.Services);
            await SendAndReceiveFromQueueAdapter(adapterFactory, config);
        }