NancyFx/Nancy.Bootstrappers.Windsor — pull request #8 by asgerhallas (2012-09-19 12:28:16+00:00)
Title: Fixing #7

I've changed the bootstrapper to be independent on the number and/or order of calls to RegisterTypes and RegisterCollectionTypes.

The need for this is shown by adding an ApplicationRegistrationTask that will be picked up by Initialize() which in turn calls RegisterTypes twice. The old implementation threw.

It's somewhat hacky to change the ComponentModels directly, but at least contained.

For some reason the name of the proxy for INancyEngine changed with this new implementation. It still proxies as it should, so it seems ok?