Where is the IHttpControllerFactory?

The Microsoft website says that there is an IHttpControllerFactory that can be used to generate controllers in the usual way.

However, the System.Web.Http DLL referenced by Visual Studio is: \ Microsoft.AspNet.WebApi.Core.4.0.20710.0 \ Lib \ net40 \ System.Web.Http.dll packages

Does not have this interface:

enter image description here

So where is the interface now?

+4
source share
2 answers

It disappeared and replaced dependency resolveror, more specifically IDependencyResolver. After you write your own dependency solution, you can connect it to the web API:

config.DependencyResolver = new MyDependencyResolver();
+3
source

Unable to find him.

IHttpControllerActivator -API.

0

All Articles