public void Start(WaitHandle waitHandle) { var connectionFactory = new DefaultConnectionFactory(Constants.HostName); PublisherConfirmsProvider.DeclareExchange(connectionFactory); var bus = new RogerBus(connectionFactory); bus.Start(); StartPublishing(bus, waitHandle); }
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(); }