Share via


ConfigBuilder Class

 

The ConfigBuilder class is responsible for initializing the service including ASP.NET Web API, Autofac, and OWIN. The default ConfigBuilder implementation configures the service using default settings but an application can customize this in multiple ways: By providing a ConfigOptions with custom settings; by providing an Action<T1, T2> which can configure the dependency injection engine; or by providing an entirely different IConfigBuilder implementation.

Namespace:   Microsoft.WindowsAzure.Mobile.Service
Assembly:  Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.dll)

Inheritance Hierarchy

System.Object
  Microsoft.WindowsAzure.Mobile.Service.ConfigBuilder

Syntax

public class ConfigBuilder : IConfigBuilder
public ref class ConfigBuilder : IConfigBuilder
type ConfigBuilder = 
    class
        interface IConfigBuilder
    end
Public Class ConfigBuilder
    Implements IConfigBuilder

Constructors

Name Description
System_CAPS_pubmethod ConfigBuilder()

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

System_CAPS_pubmethod ConfigBuilder(ConfigOptions)

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

System_CAPS_pubmethod 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.

System_CAPS_pubmethod 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.

Properties

Name Description
System_CAPS_protproperty AutofacConfig

The Action<T1, T2> to invoke to configure Autofac.

System_CAPS_protproperty Options

Gets the ConfigOptions used by this ConfigBuilder.

Methods

Name Description
System_CAPS_pubmethod ConfigureOwin(HttpConfiguration)

System_CAPS_protmethod ConfigureServiceDependencies(HttpConfiguration, ContainerBuilder)

Provides a mechanism by which an application can register additional services with the default dependency injection container.

System_CAPS_pubmethod ConfigureWebApi(HttpConfiguration, IDictionary<Type, Object>)

System_CAPS_protmethod ConfigureWebApiDependencyResolver(HttpConfiguration, IDictionary<Type, Object>)

Initializes the dependency resolver.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethod OnComplete(HttpConfiguration)

If overridden by a subclass this method is called once initialization has completed.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.WindowsAzure.Mobile.Service Namespace

Return to top