Does anyone have some sample code of using a castle windsor InstallerFactory for ordering the installation of Installers?
Can’t seem to find it in the docs or elsewhere.
Cheers
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can only use the
InstallerFactoryin conjunction with theFromAssemblyclass.In addition to that you should inherit from the
InstallerFactoryclass and apply your own rules regarding the instantiation of particular installer types.Sample class could look like this:
And here is the code for the container initialization:
Hope this helps!