If using an AbstractBootStrapper and the Rhino.ServiceBus.Host there
is no clean way I have found of registering an IBusConfigurationAware
implementaion with the container before the RhinoServiceBusFacility
uses them in it's Init method. To enable this scenario I have patched
the DefaultHost. I had to move the creation and configuration code for
the facility from the DefaultHost.CreateContainer method to the
DefaultHost.InitializeContainer method.

Then I can do this in the BootStrapper:

protected override void ConfigureContainer(){
 
container.Kernel.Register(Component.For<IBusConfigurationAware>().ImplementedBy<UseBusConfigForOwnPurposes>());
            base.ConfigureContainer();
}


I guess this could be a breaking change if in your
AbstractBootStrapper.ConfigureContainer method you are assuming the
RhinoServiceBusFacility is already added to the container.

Will it break your code or shall I ask Corey to pull the patch?

-- 
You received this message because you are subscribed to the Google Groups 
"Rhino Tools Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rhino-tools-dev?hl=en.

Reply via email to