IConfigBuilder.ConfigureWebApi Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This step is called as part of configuring ASP.NET Web API. It is passed the config
which it can modify in place and a set of serviceInstances
infrastructure services
which the service depends on. These infrastructure services must be registered with the dependency
resolver so that the runtime can obtain them at runtime.
public void ConfigureWebApi (System.Web.Http.HttpConfiguration config, System.Collections.Generic.IDictionary<Type,object> serviceInstances);
abstract member ConfigureWebApi : System.Web.Http.HttpConfiguration * System.Collections.Generic.IDictionary<Type, obj> -> unit
Public Sub ConfigureWebApi (config As HttpConfiguration, serviceInstances As IDictionary(Of Type, Object))
Parameters
- config
- System.Web.Http.HttpConfiguration
The current System.Web.Http.HttpConfiguration instance.
- serviceInstances
- IDictionary<Type,Object>
A set of infrastructure service instances which must be registered with the dependency injection engine.
Applies to
Azure SDK for .NET