We have an MVC web which is running in Autofac.All the config is stored in an autofac config sectio开发者_如何学Cn in the web.config and when run the Global asax sets up the container and sorts out al
I\'m about to start a p开发者_开发百科roject where the IoC being used is AutoFac - at a new company. I have no prior experience with DI/IoC and want to get up to speed on this so I don\'t look toooo u
I posted this on the TypeMock forums, but am too impatient to wait for a response there.This is a very n00b question.
let\'s say this scenario: public class B {}; public class C { public C(B b){} } To resolve C from Autofac container, I开发者_如何学JAVA have to register both B and C to container.
I have a class that takes an interface a开发者_运维技巧s a constructor argument. There are two implementations of this interface and I want to decide what implementation to use at runtime based on a v
Is there anyway to get autofac to resolve the service that has a concrete implementation with the constructor that matches a given parameter most specifically.
In his blog Nicholas announced support for ASP.NET MVC 2.0 Areas. However, I couldn\'t get it working and from what I see in Autofac sourcecode, areas support is nowhere to be seen. More specifically,
Does anyone have any idea about what i doing wrong? I have a such static class: public static class ApplicationContainer
I have the following setup public class CommonClass : ICommonClass { } public class SomeClass : ISomeClass
Here is the example code: public interface IService<TEntity> 开发者_运维技巧{ IContext Context { get; set; }