示例#1
0
 public RabbitConfiguration AddBroker( Action<RabbitBrokerFluentConfigurator> configurate )
 {
     var configurator = new RabbitBrokerFluentConfigurator();
     configurate( configurator );
     AddBroker( configurator.RabbitBroker );
     return this;
 }
示例#2
0
        public RabbitConfigurator Server(Action <RabbitBrokerFluentConfigurator> configurate)
        {
            var configurator = new RabbitBrokerFluentConfigurator();

            configurate(configurator);
            Configuration.AddBroker(configurator.RabbitBroker);
            return(this);
        }