Permalink
Browse files

So an IBusConfigurationAware impl can be added to the container and u…

…sed by the RhinoServiceBusFacility during Init method.
  • Loading branch information...
Philip Hoy Philip Hoy
Philip Hoy authored and Philip Hoy committed Jul 1, 2010
1 parent 114860e commit 822c76a4668c86923492b6df7a3a98a42103d5e2
Showing with 6 additions and 7 deletions.
  1. +6 −7 Rhino.ServiceBus/Hosting/DefaultHost.cs
@@ -69,6 +69,12 @@ private void InitailizeBus(string asmName)
private void InitializeContainer()
{
bootStrapper.InitializeContainer(container);
+ if (hostConfiguration != null)
+ container.Kernel.ConfigurationStore.AddFacilityConfiguration("rhino.esb", hostConfiguration);
+
+ var facility = new RhinoServiceBusFacility();
+ bootStrapper.ConfigureBusFacility(facility);
+ container.Kernel.AddFacility("rhino.esb", facility);
}
private void CreateContainer()
@@ -81,13 +87,6 @@ private void CreateContainer()
: new WindsorContainer()
: new WindsorContainer(new XmlInterpreter(standaloneCastleConfigurationFileName));
}
-
- if(hostConfiguration != null)
- container.Kernel.ConfigurationStore.AddFacilityConfiguration("rhino.esb", hostConfiguration);
-
- var facility = new RhinoServiceBusFacility();
- bootStrapper.ConfigureBusFacility(facility);
- container.Kernel.AddFacility("rhino.esb", facility);
}
private void CreateBootStrapper()

0 comments on commit 822c76a

Please sign in to comment.