Partilhar via


ConfigBuilder.ConfigureWebApiDependencyResolver Método

Definição

Inicializa a resolução de dependências.

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 atual System.Web.Http.HttpConfiguration .

serviceInstances
IDictionary<Type,Object>

O conjunto de dependências que são necessárias para o serviço funcionar. Estas dependências devem ser registadas para que estejam disponíveis para o serviço mediante pedido.

Devoluções

System.Web.Http.Dependencies.IDependencyResolver

A System.Web.Http.Dependencies.IDependencyResolver utilizar para este serviço.

Aplica-se a