autofac
Autofac integration into Prism 4
I am swapping out the standard Unity container in Prism 4 and run into a pr开发者_StackOverflow中文版oblem when my modules are initializing. Before I used to get an IUnityContainer injected and this t[详细]
2023-03-14 21:28 分类:问答Configure autofac to ignore constructors marked as obsolete
Is it possible to easily configure autofac so it will only resolve using non-obs开发者_运维问答olete constructors?[详细]
2023-03-14 13:01 分类:问答Am I registering the ObjectContext using AutoFac correctly?
I have a windows service and I want to make sure that my EF ObjectContext is disposed of between each time its runs. The service runs longer each time it executes. It seems like the ObjectContext keep[详细]
2023-03-13 08:55 分类:问答Autofac to Common Service Locator (TypedParameter issue)
How do i modify the following from Autofac to use the Common Service Locator (where _context is of type IComponentContext):[详细]
2023-03-12 16:29 分类:问答Can autofac do partial Resolve?
I seem to need this a lot. Let\'s say I have a class with constructor taking several arguments. Some of these can be resolved by registering components. But the rest are instances created during runt[详细]
2023-03-11 04:24 分类:问答Autofac - handle multiple requests in ASP.Net MVC 3
I am new to Autofac and IoC so now I try to build my firs ASP.NET MVC 3 application with IoC. Here with this code I try manually to register ProductController (in Global.asax)开发者_如何学编程.[详细]
2023-03-11 02:49 分类:问答Swap out repositories with a flag
I have an IRepository< T > interface with many T\'s and several implementations (on-demand DB, web service, etc.). I use AutoFac to register IRepository\'s for many T\'s depending on the kind of re[详细]
2023-03-10 08:47 分类:问答Autofac: Rerouting Service Resolutions
How do I re-route service resolutions with Autofac? In other words: How do I divert resolutions to first check with a Common Service Locator before checking its own registrations?[详细]
2023-03-10 00:06 分类:问答Resolve from IoC container based on enum value
Problem I have a protobuf message definition with a MessageType field, which is an enum. Given an incoming protobuf message, I would like to resolve some IMessageHandlers from an IoC container based[详细]
2023-03-09 13:29 分类:问答Autofac Registration Brace
In the last days I took a watch t开发者_运维百科o the orchad source, and in the bootstrap class during the registration of the components with Autofac I saw same code that I can\'t explain!!!![详细]
2023-03-06 22:06 分类:问答