A bit of a strange situation: I m developing an ASP.NET MVC 3 application that uses Autofac as its IoC container and that can be dropped into any existing MVC or WebForms application.
Everything works fine, except when the other application also uses Autofac. I ve created a custom DependencyResolver wrapper that combines my application s AutofacDependencyResolver with DependencyReolver.Current of the other application (when set). Resolving of components just fails sometimes although I can see in the debugger that everything is properly registered.
我怀疑,这两种内部解决者都在争夺HttpContext的一个地点。 收集物品,但我可以追随具体问题。
如何妥善处理这种情况?