示例#1
0
        public void Install(IWindsorContainer container, IConfigurationStore store)
        {
            var massTransitBus = new ServiceBusFactory().Create(_endpoint);

            container.Register(Component.For <IServiceBus>().Instance(massTransitBus).LifeStyle.Singleton);
        }
示例#2
0
 public void Install(IWindsorContainer container, IConfigurationStore store)
 {
     var massTransitBus = new ServiceBusFactory().Create(_endpoint);
     container.Register(Component.For<IServiceBus>().Instance(massTransitBus).LifeStyle.Singleton);
 }