Compartilhar via


ConfigBuilder.ConfigureServiceDependencies Método

Definição

Fornece um mecanismo pelo qual um aplicativo pode registrar serviços adicionais com o contêiner de injeção de dependência padrão.

protected virtual void ConfigureServiceDependencies (System.Web.Http.HttpConfiguration config, Autofac.ContainerBuilder containerBuilder);
abstract member ConfigureServiceDependencies : System.Web.Http.HttpConfiguration * Autofac.ContainerBuilder -> unit
override this.ConfigureServiceDependencies : System.Web.Http.HttpConfiguration * Autofac.ContainerBuilder -> unit
Protected Overridable Sub ConfigureServiceDependencies (config As HttpConfiguration, containerBuilder As ContainerBuilder)

Parâmetros

config
System.Web.Http.HttpConfiguration

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

containerBuilder
Autofac.ContainerBuilder

O Autofac.ContainerBuilder fornecido pelo Autofac.

Aplica-se a