ConfigBuilder.ConfigureWebApiDependencyResolver Method

Definition

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