ConfigBuilder Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public class ConfigBuilder : Microsoft.WindowsAzure.Mobile.Service.Config.IConfigBuilder
type ConfigBuilder = class
interface IConfigBuilder
Public Class ConfigBuilder
Implements IConfigBuilder
- Inheritance
-
ConfigBuilder
- Implements
Constructors
ConfigBuilder() |
Initializes a new instance of the ConfigBuilder class with default settings. |
ConfigBuilder(ConfigOptions, Action<ContainerBuilder>) |
Obsolete.
Initializes a new instance of the ConfigBuilder class a given |
ConfigBuilder(ConfigOptions, Action<HttpConfiguration,ContainerBuilder>) |
Initializes a new instance of the ConfigBuilder class a given |
ConfigBuilder(ConfigOptions) |
Initializes a new instance of the ConfigBuilder class a given |
Properties
AutofacConfig |
The Action<T1,T2> to invoke to configure Autofac. |
Options |
Gets the ConfigOptions used by this ConfigBuilder. |
Methods
ConfigureOwin(HttpConfiguration) |
This step is called as part of configuring the OWIN application pipeline. |
ConfigureServiceDependencies(HttpConfiguration, ContainerBuilder) |
Provides a mechanism by which an application can register additional services with the default dependency injection container. |
ConfigureWebApi(HttpConfiguration, IDictionary<Type,Object>) |
This step is called as part of configuring ASP.NET Web API. It is passed the |
ConfigureWebApiDependencyResolver(HttpConfiguration, IDictionary<Type,Object>) |
Initializes the dependency resolver. |
OnComplete(HttpConfiguration) |
If overridden by a subclass this method is called once initialization has completed. |