你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ConfigBuilder 构造函数

定义

重载

ConfigBuilder()

使用默认设置初始化 ConfigBuilder 类的新实例。

ConfigBuilder(ConfigOptions)

初始化给定options实例的 ConfigBuilder 类的新实例,提供自定义设置。

ConfigBuilder(ConfigOptions, Action<ContainerBuilder>)
已过时.

初始化 类的新实例 ConfigBuilderoptions 该类提供自定义设置,并在 Action<T> 配置 Autofac 时调用 ,允许应用程序注入其他依赖项以及替换现有依赖项。

ConfigBuilder(ConfigOptions, Action<HttpConfiguration,ContainerBuilder>)

初始化 类的新实例 ConfigBuilderoptions 该类提供自定义设置,并在 Action<T1,T2> 配置 Autofac 时调用 ,允许应用程序注入其他依赖项以及替换现有依赖项。

ConfigBuilder()

使用默认设置初始化 ConfigBuilder 类的新实例。

public ConfigBuilder ();
Public Sub New ()

适用于

ConfigBuilder(ConfigOptions)

初始化给定options实例的 ConfigBuilder 类的新实例,提供自定义设置。

public ConfigBuilder (Microsoft.WindowsAzure.Mobile.Service.ConfigOptions options);
new Microsoft.WindowsAzure.Mobile.Service.ConfigBuilder : Microsoft.WindowsAzure.Mobile.Service.ConfigOptions -> Microsoft.WindowsAzure.Mobile.Service.ConfigBuilder
Public Sub New (options As ConfigOptions)

参数

适用于

ConfigBuilder(ConfigOptions, Action<ContainerBuilder>)

注意

Please use the overload which takes an Action<HttpConfiguration, ContainerBuilder>

初始化 类的新实例 ConfigBuilderoptions 该类提供自定义设置,并在 Action<T> 配置 Autofac 时调用 ,允许应用程序注入其他依赖项以及替换现有依赖项。

[System.Obsolete("Please use the overload which takes an Action<HttpConfiguration, ContainerBuilder>")]
public ConfigBuilder (Microsoft.WindowsAzure.Mobile.Service.ConfigOptions options, Action<Autofac.ContainerBuilder> dependencyInjectionConfig);
[<System.Obsolete("Please use the overload which takes an Action<HttpConfiguration, ContainerBuilder>")>]
new Microsoft.WindowsAzure.Mobile.Service.ConfigBuilder : Microsoft.WindowsAzure.Mobile.Service.ConfigOptions * Action<Autofac.ContainerBuilder> -> Microsoft.WindowsAzure.Mobile.Service.ConfigBuilder
Public Sub New (options As ConfigOptions, dependencyInjectionConfig As Action(Of ContainerBuilder))

参数

dependencyInjectionConfig
Action<Autofac.ContainerBuilder>

Action<T> 配置 Autofac 依赖项引擎时调用的 。

属性

适用于

ConfigBuilder(ConfigOptions, Action<HttpConfiguration,ContainerBuilder>)

初始化 类的新实例 ConfigBuilderoptions 该类提供自定义设置,并在 Action<T1,T2> 配置 Autofac 时调用 ,允许应用程序注入其他依赖项以及替换现有依赖项。

public ConfigBuilder (Microsoft.WindowsAzure.Mobile.Service.ConfigOptions options, Action<System.Web.Http.HttpConfiguration,Autofac.ContainerBuilder> autofacConfig);
new Microsoft.WindowsAzure.Mobile.Service.ConfigBuilder : Microsoft.WindowsAzure.Mobile.Service.ConfigOptions * Action<System.Web.Http.HttpConfiguration, Autofac.ContainerBuilder> -> Microsoft.WindowsAzure.Mobile.Service.ConfigBuilder
Public Sub New (options As ConfigOptions, autofacConfig As Action(Of HttpConfiguration, ContainerBuilder))

参数

autofacConfig
Action<System.Web.Http.HttpConfiguration,Autofac.ContainerBuilder>

Action<T1,T2> 配置 Autofac 依赖项引擎时调用的 。

适用于