Esempio n. 1
0
 /// <summary>
 /// The install method.
 /// </summary>
 public void Install(global::Castle.Windsor.IWindsorContainer container, global::Castle.MicroKernel.SubSystems.Configuration.IConfigurationStore store)
 {
     if (!_isInitialized)
     {
         _isInitialized = true;
         container.Kernel.Resolver.AddSubResolver(new NLogResolver());
         container.Register(Component.For <ILogger>().LifestyleTransient());
     }
 }
Esempio n. 2
0
        public void Install(global::Castle.Windsor.IWindsorContainer container, global::Castle.MicroKernel.SubSystems.Configuration.IConfigurationStore store)
        {
            new RhinoServiceBusConfiguration()
            .UseCastleWindsor(container)
            .Configure();

            // castle is not able to resolve references right now, we need another support interface to delay the bust start outside the installer calls
            // container.Resolve<IStartableServiceBus>().Start(); -> this will throw an exception.
            container.Register(Component.For <IStartableBus>().ImplementedBy <Startable>().LifeStyle.Transient);
        }
Esempio n. 3
0
 public void Install(global::Castle.Windsor.IWindsorContainer container, global::Castle.MicroKernel.SubSystems.Configuration.IConfigurationStore store)
 {
     new OnewayRhinoServiceBusConfiguration()
     .UseCastleWindsor(container)
     .Configure();
 }
 public CastleWindsorContainerAdapter(global::Castle.Windsor.IWindsorContainer container)
 {
     this.container = container;
 }