Ejemplo n.º 1
0
        protected override void DoRun()
        {
            var transport = new AzureStorageQueuesTransport(GetStorageAccount(ConnectionStringName  ), InputQueue);

            var returnToSourceQueue = new ReturnToSourceQueue(transport)
            {
                DefaultOutputQueue = DefaultOutputQueue,
                InputQueue = InputQueue
            };

            returnToSourceQueue.Run();
        }
Ejemplo n.º 2
0
        protected override void DoRun()
        {
            using (var transport = new MsmqTransport(InputQueue))
            {
                var returnToSourceQueue = new ReturnToSourceQueue(transport)
                {
                    InputQueue = InputQueue,
                    DefaultOutputQueue = DefaultOutputQueue
                };

                returnToSourceQueue.Run();
            }
        }
Ejemplo n.º 3
0
        protected override void DoRun()
        {
            using (var transport = new RabbitMqTransport(GetConnectionString(HostnameOrConnectionString), InputQueue))
            {
                var returnToSourceQueue = new ReturnToSourceQueue(transport)
                {
                    InputQueue = InputQueue,
                    DefaultOutputQueue = DefaultOutputQueue
                };

                returnToSourceQueue.Run();
            }
        }
Ejemplo n.º 4
0
        protected override void DoRun()
        {
            using (var transport = new AzureServiceBusTransport(GetConnectionString(ConnectionStringName), InputQueue, LoggerFactory))
            {
                var returnToSourceQueue = new ReturnToSourceQueue(transport)
                {
                    InputQueue = InputQueue,
                    DefaultOutputQueue = DefaultOutputQueue
                };

                returnToSourceQueue.Run();
            }
        }
Ejemplo n.º 5
0
        protected override void DoRun()
        {
            var busLifetimeEvents = new BusLifetimeEvents();
            using (var transport = new AzureServiceBusTransport(GetConnectionString(ConnectionStringName), InputQueue, LoggerFactory, new TplAsyncTaskFactory(LoggerFactory), busLifetimeEvents))
            {
                var returnToSourceQueue = new ReturnToSourceQueue(transport)
                {
                    InputQueue = InputQueue,
                    DefaultOutputQueue = DefaultOutputQueue
                };

                returnToSourceQueue.Run();
            }
        }