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 | |
---|---|---|
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. |
Properties
Name | Description | |
---|---|---|
AutofacConfig | The Action<T1, T2> to invoke to configure Autofac. |
|
Options | Gets the ConfigOptions used by this ConfigBuilder. |
Methods
Name | Description | |
---|---|---|
ConfigureOwin(HttpConfiguration) | ||
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>) | ||
ConfigureWebApiDependencyResolver(HttpConfiguration, IDictionary<Type, Object>) | Initializes the dependency resolver. |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
OnComplete(HttpConfiguration) | If overridden by a subclass this method is called once initialization has completed. |
|
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