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)

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

type ConfigBuilder = 
    class
        interface IConfigBuilder
    end

NameDescription
System_CAPS_pubmethodConfigBuilder()

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

System_CAPS_pubmethodConfigBuilder(ConfigOptions)

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

System_CAPS_pubmethodConfigBuilder(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_pubmethodConfigBuilder(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.

NameDescription
System_CAPS_protpropertyAutofacConfig

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

System_CAPS_protpropertyOptions

Gets the ConfigOptions used by this ConfigBuilder.

NameDescription
System_CAPS_pubmethodConfigureOwin(HttpConfiguration)

System_CAPS_protmethodConfigureServiceDependencies(HttpConfiguration, ContainerBuilder)

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

System_CAPS_pubmethodConfigureWebApi(HttpConfiguration, IDictionary<Type, Object>)

System_CAPS_protmethodConfigureWebApiDependencyResolver(HttpConfiguration, IDictionary<Type, Object>)

Initializes the dependency resolver.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodOnComplete(HttpConfiguration)

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

System_CAPS_pubmethodToString()

(Inherited from Object.)

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

Return to top
Show: