Udostępnij za pośrednictwem


ConfigBuilder Constructors

Definition

Overloads

ConfigBuilder()

Initializes a new instance of the ConfigBuilder class with default settings.

ConfigBuilder(ConfigOptions)

Initializes a new instance of the ConfigBuilder class a given options instance providing custom settings.

ConfigBuilder(ConfigOptions, Action<ContainerBuilder>)
Obsolete.

Initializes a new instance of the ConfigBuilder class a given options instance providing custom settings and an Action<T> which is called when Autofac is configured allowing the application to inject additional dependencies as well as replacing existing dependencies.

ConfigBuilder(ConfigOptions, Action<HttpConfiguration,ContainerBuilder>)

Initializes a new instance of the ConfigBuilder class a given options instance providing custom settings and an Action<T1,T2> which is called when Autofac is configured allowing the application to inject additional dependencies as well as replacing existing dependencies.

ConfigBuilder()

Initializes a new instance of the ConfigBuilder class with default settings.

public ConfigBuilder ();
Public Sub New ()

Applies to

ConfigBuilder(ConfigOptions)

Initializes a new instance of the ConfigBuilder class a given options instance providing custom settings.

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)

Parameters

Applies to

ConfigBuilder(ConfigOptions, Action<ContainerBuilder>)

Caution

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

Initializes a new instance of the ConfigBuilder class a given options instance providing custom settings and an Action<T> which is called when Autofac is configured allowing the application to inject additional dependencies as well as replacing existing dependencies.

[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))

Parameters

dependencyInjectionConfig
Action<Autofac.ContainerBuilder>

An Action<T> which is called when the Autofac dependency engine is configured.

Attributes

Applies to

ConfigBuilder(ConfigOptions, Action<HttpConfiguration,ContainerBuilder>)

Initializes a new instance of the ConfigBuilder class a given options instance providing custom settings and an Action<T1,T2> which is called when Autofac is configured allowing the application to inject additional dependencies as well as replacing existing dependencies.

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))

Parameters

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

An Action<T1,T2> which is called when the Autofac dependency engine is configured.

Applies to