ConfigBuilder.ConfigureWebApiDependencyResolver 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.
Initializes the dependency resolver.
protected virtual System.Web.Http.Dependencies.IDependencyResolver ConfigureWebApiDependencyResolver (System.Web.Http.HttpConfiguration config, System.Collections.Generic.IDictionary<Type,object> serviceInstances);
abstract member ConfigureWebApiDependencyResolver : System.Web.Http.HttpConfiguration * System.Collections.Generic.IDictionary<Type, obj> -> System.Web.Http.Dependencies.IDependencyResolver
override this.ConfigureWebApiDependencyResolver : System.Web.Http.HttpConfiguration * System.Collections.Generic.IDictionary<Type, obj> -> System.Web.Http.Dependencies.IDependencyResolver
Protected Overridable Function ConfigureWebApiDependencyResolver (config As HttpConfiguration, serviceInstances As IDictionary(Of Type, Object)) As IDependencyResolver
Parameters
- config
- System.Web.Http.HttpConfiguration
The current System.Web.Http.HttpConfiguration instance.
- serviceInstances
- IDictionary<Type,Object>
The set of dependencies which are required for the service to function. These dependencies should be registered so that they are available to the service upon request.
Returns
System.Web.Http.Dependencies.IDependencyResolver
The System.Web.Http.Dependencies.IDependencyResolver to use for this service.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET