Compartilhar via


ConfigBuilder.ConfigureWebApiDependencyResolver Método

Definição

Inicializa o resolvedor de dependência.

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

Parâmetros

config
System.Web.Http.HttpConfiguration

A instância System.Web.Http.HttpConfiguration atual.

serviceInstances
IDictionary<Type,Object>

O conjunto de dependências que são necessárias para que o serviço funcione. Essas dependências devem ser registradas para que estejam disponíveis para o serviço após a solicitação.

Retornos

System.Web.Http.Dependencies.IDependencyResolver

O System.Web.Http.Dependencies.IDependencyResolver a ser usado para esse serviço.

Aplica-se a