autofac
Weak reference vs. Autofac resolve?
I have POCO objects that reference each other by findi开发者_StackOverflow中文版ng ID\'s in repositories. I don\'t want the objects to have strong references between each other because the repositorie[详细]
2023-03-04 11:07 分类:问答autofac: How to resolve collection of named types?
I have a bunch of TaskParametes class instances registered in container, like: builder.Register(c => [some type instantiation][详细]
2023-03-01 02:05 分类:问答Autofac: Batch registration of open-generic types
I got an assembly with many concrete types that implement IHandler<TCommand>, such as the following:[详细]
2023-02-28 23:23 分类:问答Whats the status of Prism integration in Autofac?
Integration into Prism was talked about in the 2.1.x time frame, 开发者_如何学Cwe are @ 2.4.x, Prism 4 is out now and the RIStockTrader Example in /contrib is just a default XAML project.[详细]
2023-02-27 11:24 分类:问答WCF contract mismatch error using Autofac to register endpoint via ChannelFactory
I have a WCF service that works when accessed by a simple MVC application. When I try to make call on the same endpoint from a different MVC app that\'s wired up with Autofac I get a binding/开发者_J[详细]
2023-02-27 10:20 分类:问答Autofac 2.4.5.724 API change for ReflectionExtensions IsClosingTypeOf
Does IsClosingTypeOf still exist? What is the equivalent method in TypeExtensions? I guess I\'ll have to bite the bullet and install hg and download the code. I\'ve been trying to avoid doing this fo[详细]
2023-02-24 10:32 分类:问答Using Autofac with Domain Events
I\'m trying to introduce domain events into a project. The concept is described in Udi Dahan\'s post - http://www.udidahan.com/2009/06/14/domain-events-salvation/[详细]
2023-02-23 14:44 分类:问答ModelBinder is not invoked
Per my previous question, I implemented a model binder that maps /api/v1/widgets/1,2,3 to // WidgetsController.cs:[详细]
2023-02-21 05:01 分类:问答Is it bad design to reference Autofac in my projects just for Owned<T>?
I\'ve recently become a heavy user of Autofac\'s OwnedInstances feature.For example, I use it to provide a factory for creating a Unit of Work for my database, which means my classes which depend on t[详细]
2023-02-20 09:34 分类:问答How to set ViewBag properties for all Views without using a base class for Controllers?
In the past I\'ve stuck common properties, such as the current user, onto ViewData/ViewBag in a global fashion by having all Controllers inherit from a common base controller.[详细]
2023-02-19 22:54 分类:问答