温莎城堡 - 使用 InstallerFactory 的示例
有谁有一些使用温莎城堡 InstallerFactory 来订购安装程序安装的示例代码吗?
似乎无法在文档或其他地方找到它。
干杯
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您只能将
InstallerFactory
与FromAssembly
类结合使用。除此之外,您应该从
InstallerFactory
类继承,并应用您自己的关于特定安装程序类型的实例化的规则。示例类可能如下所示:
这是容器初始化的代码:
希望这会有所帮助!
You can only use the
InstallerFactory
in conjunction with theFromAssembly
class.In addition to that you should inherit from the
InstallerFactory
class 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!