I have solution where all of my windsor container registers have been moved to set of installer classes. A framework I am playing around with (SharpArchContrib) requires its components be registered first.
Given that I have an installer called SharpArchContribInstaller and for simplicity sake an installer called Everythin开发者_开发百科gElseInstaller, how should I implement a derived InstallerFactory and use it with the container.Install method? or if this is not the way, what is the proper way to order installer execution?
Thanks in advance for the help.
You have two ways to doing this.
Simpler one is to do:
Container.Install(
FromAssembly.Named("Somethig"),
FromAssembly.AllTheRestAsPerYourRequirements());
That is split this thing out if possible. If not go with InstallerFactory.
精彩评论