autofac
Autofac: Tips for increasing performance when using DynamicProxy?
I just start using DynamicProxy2 today. And found it caused significant performance drop. See the code below. Test1 is 10 times slower than Test2.[详细]
2023-02-15 18:51 分类:问答Register HttpContext.User with Autofac
I would like to do the following in Autofac, but not sure how? This is how you do it in StructureMap For开发者_JAVA技巧RequestedType<IPrincipal>()[详细]
2023-02-15 12:19 分类:问答Autofac: Injected collection is not empty (contains one item)
I\'m using Autofac 2.4.4.705. The output of the following code is: 1 (which means the resolved collection contains one item. I thought it should be empty)[详细]
2023-02-15 11:10 分类:问答Is order of dependencies guaranteed when injecting IEnumerable<T>
I register in container services implementing IMyService. Do I have any guarantees about their order in[详细]
2023-02-15 10:52 分类:问答Autofac wiring question - beginner
Beginners question: Given two classes: Myclass5 and Myclass6 how can one wire up following factory method (returned as Func)[详细]
2023-02-14 19:04 分类:问答Can an exception during OnRelease cause a component to not be disposed correctly?
I\'ve got the following code wiring a NHibernate ISession in Autofac for a ASP.NET application : builder.RegisterAdapter<ISessionFactory, ISe开发者_如何转开发ssion>(factory => factory.OpenSe[详细]
2023-02-14 05:43 分类:问答Autofac composite pattern
I noticed I quite often need to implement composite pattern. For example: interface IService { ... } class Service1 : IService { ... }[详细]
2023-02-13 03:18 分类:问答How do I use autofac to resolve a WCF Data Service?
I am creating a WCF Data Service using the WCF Data Services Toolkit and its whitepaper Building OData Services on Top of Existing APIs. The service is being added to an existing MV开发者_JAVA技巧C 3[详细]
2023-02-12 17:14 分类:问答Is it possible to remove an existing registration from Autofac container builder?
Something along those lines: builder.RegisterType<MyType>().As<IType>(); builder.RegisterType<MyType2>().As<IType>();[详细]
2023-02-12 16:51 分类:问答Performance overhead of using IoC containers with MVC3
I have an MVC3 application that I hope will be serving a large number of user requests. I would like to use an IoC container but don\'t want it to slow down the performance of my application.[详细]
2023-02-12 04:54 分类:问答