AutofacServiceHostFactoryCreateSingletonServiceHost Method |
Creates a
ServiceHost for a specified type of service with a specific base address.
Namespace:
Autofac.Integration.Wcf
Assembly:
Autofac.Integration.Wcf (in Autofac.Integration.Wcf.dll) Version: 6.0.0+691de191498a27e1db2c331d318e19150e41288c
Syntax protected override ServiceHost CreateSingletonServiceHost(
Object singletonInstance,
Uri[] baseAddresses
)
Protected Overrides Function CreateSingletonServiceHost (
singletonInstance As Object,
baseAddresses As Uri()
) As ServiceHost
Parameters
- singletonInstance
- Type: SystemObject
Specifies the singleton service instance to host. - baseAddresses
- Type: SystemUri
The Array of type Uri that contains the base addresses for the service hosted.
Return Value
Type:
ServiceHost
A
ServiceHost for the singleton service instance specified with a specific base address.
See Also