public TripsSubscriber(
            IDriversDomainService driversDomainService)
        {
            this.driversDomainService = driversDomainService;

            this.connectionFactory = new ConnectionFactory() { HostName = "localhost" };
            this.connection = this.connectionFactory.CreateConnection();
            this.channel = this.connection.CreateModel();

            // creates a work queue
            channel.QueueDeclare(
                queue: "unhandled_trips_queue",
                durable: true,
                exclusive: false,
                autoDelete: false,
                arguments: null);

            channel.BasicQos(prefetchSize: 0, prefetchCount: 1, global: false);
        }
        public TripsSubscriber(
            IDriversDomainService driversDomainService)
        {
            this.driversDomainService = driversDomainService;

            this.connectionFactory = new ConnectionFactory()
            {
                HostName = "localhost"
            };
            this.connection = this.connectionFactory.CreateConnection();
            this.channel    = this.connection.CreateModel();

            // creates a work queue
            channel.QueueDeclare(
                queue: "unhandled_trips_queue",
                durable: true,
                exclusive: false,
                autoDelete: false,
                arguments: null);

            channel.BasicQos(prefetchSize: 0, prefetchCount: 1, global: false);
        }
 public DriversController(
     IDriversDomainService driversDomainService)
 {
     this.driversDomainService = driversDomainService;
 }
Example #4
0
 public DriversController(
     IDriversDomainService driversDomainService)
 {
     this.driversDomainService = driversDomainService;
 }