AutofacHostFactory Class |
Namespace: Autofac.Integration.Wcf
The AutofacHostFactory type exposes the following members.
Name | Description | |
---|---|---|
![]() | AutofacHostFactory | Initializes a new instance of the AutofacHostFactory class |
Name | Description | |
---|---|---|
![]() ![]() | Container |
Gets or sets the container or lifetime scope from which service instances will be retrieved.
|
![]() ![]() | Features |
Gets or sets Features flags.
|
![]() ![]() | HostConfigurationAction |
Gets or sets an action that can be used to programmatically configure
service host instances this factory generates.
|
![]() ![]() | ServiceImplementationDataProvider |
Gets or sets the service implementation data strategy.
|
Name | Description | |
---|---|---|
![]() | CreateServiceHost(Type, Uri) | Creates a ServiceHost for a specified type of service with a specific base address. (Inherited from ServiceHostFactory.) |
![]() | CreateServiceHost(String, Uri) |
Creates a ServiceHost with specific base addresses and initializes it with specified data.
(Overrides ServiceHostFactoryCreateServiceHost(String, Uri).) |
![]() | CreateSingletonServiceHost |
Creates a ServiceHost for a specified type of service with a specific base address.
|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
The Autofac service host factory allows you to change the strategy by which service implementations are resolved. You do this by setting the ServiceImplementationDataProvider with a strategy implementation.
If ServiceImplementationDataProvider is a new instance of DefaultServiceImplementationDataProvider will be used.
You may configure additional behaviors or other aspects of generated service instances by setting the HostConfigurationAction. If this value is not , generated host instances will be run through that action.