- Where Developers Learn, Share, & Build Careers
Autofac.ControllerFactory as a class dll in autofac.Integration.Web.MVc autofac version 2.3.2.632 The latest version of autofac (2.6.3.862) is not Autofac.Integration.Web.Mvc, but instead it is Autofac.Integration.Mvc. Although this is not an AutofacControllerFactory class in Dll. Dll Autofac.Integration.Mvc is defined as a class AutofacDependencyResolver defined That wiki page contains a link to a sample app, where you can see the actual work code. public class AutofacControllerFactory: DefaultControllerFactory {Public AutofacControllerFactory (IContainerProvider containerProvider); Protected Override IController GetControllerInstance (RequestContext Reference, Type Controller Type); Public override zero release controller (IC controller controller); }
public class is AutofacDependencyResolver: IDependencyResolver {public AutofacDependencyResolver (ILifetimeScope container); Public AutofacDependencyResolver (ILifetimeScope Container, Action & lt; ContainerBuilder & gt; configurationAction); Public AutofacDependencyResolver (IELIMTMScope Container, IIFimesScopePrider LifeScopeProWare); Public AutofacDependencyResolver (ILifetimeScope Container, ILifetimeScopeProvider lifetimeScopeProvider, Action & lt; ContainerBuilder & gt; configurationAction); Public Elyphyscope ApplicationConnector {Received; } Public stable AutofacDependencyResolver turned on {get; } Public IIL-time Scope Request Lifetime Scope {Received; } Public Object GetService (type type serviceType); Public IEnumerable & lt; Object & gt; GetServices (type service type); What is the replacement for AutofacControllerFactory in the latest version of Autofac? There is no replacement for
AutofacControllerFactory . Instead, use
Dependency Resolver .
Comments
Post a Comment