Unity IoC 和 Solrnet
我刚刚开始在我的应用程序中使用 Solrnet,却发现使用默认设置,它自行决定用自己的(公共服务定位器)替换我的 IoC 容器,这在我看来是相当意外和“傲慢”的。
我正在使用 Unity 和通用服务定位器,如果可能的话,我想继续使用它们。 我必须改变一些如此不相关的东西才能使用 Solrnet,这似乎有点愚蠢,否则它似乎是编写良好的软件。
有什么想法吗?
I just started using Solrnet in my application only to discover that using the default settings it decides all by itself to replace my IoC container with its own (common service locator), which seems to me to be quite unexpected and "arrogant" of it.
I'm using Unity and the common service locator and I'd like to continue using them if possible.
It seems kind of silly that I have to change something so unrelated in order to use Solrnet which otherwise seems to be well written software.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
SolrNet 已设置为支持 Unity。但是,您需要进行一些设置才能使其与 Unity 配合使用。请参考 RegistryTests.cs 文件SolrNet 源单元测试了解如何使用 Unity 设置 SolrNet 的示例。
SolrNet is setup to support Unity. However, you need to do a little setup to get it working with Unity. Please refer to the RegistryTests.cs file from the SolrNet source unit tests for examples of how to setup SolrNet with Unity.