예제 #1
0
        protected override IBusControl CreateBus()
        {
            var configurator = new InMemoryBusFactoryConfigurator(_busConfiguration);

            ConfigureBus(configurator);

            ConfigureInMemoryBus(configurator);

            configurator.ReceiveEndpoint(InputQueueName, e =>
            {
                ConfigureReceiveEndpoint(e);

                ConfigureInMemoryReceiveEndpoint(e);
            });
            return(configurator.Build(_busConfiguration, _specifications ?? Enumerable.Empty <ISpecification>()));
        }
예제 #2
0
 public void ConfigureReceiveEndpoint(Action <IReceiveEndpointConfigurator> configureCallback)
 {
     _configurator.ReceiveEndpoint("input_queue", configureCallback);
 }