I recently added Autofac to an large, existing application to manage DI. In the process, I replaced singletons with a single instance managed by the container that gets injected into the dependent\'s
Using AutoFa开发者_运维知识库c 2.3.2, I am trying to do the following: var builder = new Autofac.ContainerBuilder();
I am trying to do something like this. However the WithMetadata method wont let me. Is this a problem in Autofac and should TScanningActivatorData in the WithMetadata overloads be changed to TActivat
TL;DR: How can I consolidate logic shared by two custom ModelBinder implementations into a single base class, when both implementations rely on Autofac to inject a (common) dependency into them?
When I configure my ISession lifetime to be \'per HTTP request\' (InstancePerLifetimeScope in Autofac which I\'m using), NHibernate profiler tells me that my Session is being used across threads, whic
I\'m writing a plugin system: every plugin is in his own assembly that must be loaded by autofac and is signed by an attribute with a parameter that set the type of plugin. I would be able to resolve
I\'m using NHibernate to map the following class to an Oracle database in my ASP.NET MVC application:
I am trying to introduce DI (with Autofac) into an existing Windows Forms application. This application has a basic plug-in architecture where each 开发者_高级运维plugin displays its own form. On sta
I\'m getting a \'not registered error\' during execution in the ValidatorFactory.CreateInstance call. It appears the type being sent into the method is correct.
How do I deal with: Current code looks like; class Class1 : ISomeInterface IFooService _service; void SomeMethod(){