/// <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()); } }
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); }
public void Install(global::Castle.Windsor.IWindsorContainer container, global::Castle.MicroKernel.SubSystems.Configuration.IConfigurationStore store) { new OnewayRhinoServiceBusConfiguration() .UseCastleWindsor(container) .Configure(); }