Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…sed by the RhinoServiceBusFacility during Init method.
  • Loading branch information...
commit 822c76a4668c86923492b6df7a3a98a42103d5e2 1 parent 114860e
Philip Hoy authored
Showing with 6 additions and 7 deletions.
  1. +6 −7 Rhino.ServiceBus/Hosting/DefaultHost.cs
View
13 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()
Please sign in to comment.
Something went wrong with that request. Please try again.