Beispiel #1
0
        public void Start(WaitHandle waitHandle)
        {
            var connectionFactory = new DefaultConnectionFactory(Constants.HostName);

            PublisherConfirmsProvider.DeclareExchange(connectionFactory);

            var bus = new RogerBus(connectionFactory);

            bus.Start();
            StartPublishing(bus, waitHandle);
        }
Beispiel #2
0
        public void Start(WaitHandle waitHandle)
        {
            var connectionFactory = new DefaultConnectionFactory(Constants.HostName);

            PublisherConfirmsProvider.DeclareExchange(connectionFactory);
            var bus = new RogerBus(connectionFactory, new SimpleConsumerContainer(new PublisherConfirmsConsumer()));

            bus.Start();

            waitHandle.WaitOne();

            bus.Dispose();
        }