Condividi tramite


ConfigBuilder.ConfigureServiceDependencies Metodo

Definizione

Fornisce un meccanismo in base al quale un'applicazione può registrare servizi aggiuntivi con il contenitore di inserimento delle dipendenze predefinito.

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)

Parametri

config
System.Web.Http.HttpConfiguration

L'istanza System.Web.Http.HttpConfiguration corrente.

containerBuilder
Autofac.ContainerBuilder

Oggetto Autofac.ContainerBuilder fornito da Autofac.

Si applica a