replacement for Autofac.Integration.Web.Mvc (upgrading from autofac 2.3 to 2.6) -


Autofac.ControllerFactory as a class dll in autofac.Integration.Web.MVc autofac version 2.3.2.632 itemprop = "text" Was pre> 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); }

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

  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 .

That wiki page contains a link to a sample app, where you can see the actual work code.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -