autofac
Using Autofac as a service locator
I\'m using Autofac to handle dependency injection in my application. However, I have one component that does some reflection magic at runtime and I don\'t know at compile-time what dependencies it wil[详细]
2023-03-30 22:16 分类:问答asp.net mvc autofac registery and resolver
I am working on ASP.NET MVC 3 application. I am using Autofac as my dependency resolver. I have two projects one core and other UI. In the core project I have an interface which holds[详细]
2023-03-29 23:05 分类:问答Register type with factory delegate
Is there a way in Autofac to register a type with a factory delegate that gets called when that type is requested?[详细]
2023-03-29 20:56 分类:问答Orchard NHibernate Session Factory Initialize
I\'m currently looking at the Orchard source code and can\'t find where the NHibernate Session Factory been registered into the AutoFac. Anybod开发者_开发知识库y can help with that?[详细]
2023-03-29 02:30 分类:问答Autofac component building based on ctor parameters
Is it possible to register components in a way so that they can be resolved based on constructor parameters?[详细]
2023-03-28 23:04 分类:问答Autofac injects null
I have a very strange problem with Autofac 2.5.2.830 for .NET 3.5: I user builder.RegisterAssemblyTypes to register the types in my assemblies:[详细]
2023-03-28 17:28 分类:问答OOD using IoC containers - how to construct dependant objects?
I am trying to get better with IoC,DI and OOD for better testability and looser coupling. So when we design classes with heavy use of IoC and DI we can endup with classes with multiple dependencies f[详细]
2023-03-27 16:15 分类:问答Autofac register and resolve types implementing a generic interace
Im not sure how to state this question, because im not sure where the problem lies. I think its a genetric covariance issue, but the solution might be found somewhere else, maybe in the way the interf[详细]
2023-03-26 09:27 分类:问答Overriding IOC Registration for use with Integration Testing
so I think I\'m perhaps not fully understanding how you would use an IOC container for doing Integration tests.[详细]
2023-03-26 07:50 分类:问答Should we use overrides or a static constructor when overriding AutofacServiceHostFactory
We are running WCF services with net.tcp bindings in IIS 7.5, so we make use of non-HTTP activations and WAS Hosting.We are have created a custom service host factory for each service, which is derive[详细]
2023-03-25 11:36 分类:问答