Click or drag to resize

AutofacServiceHostFactoryCreateServiceHost Method (Type, Uri)

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 CreateServiceHost(
	Type serviceType,
	Uri[] baseAddresses
)

Parameters

serviceType
Type: SystemType
Specifies the type of service 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 type of service specified with a specific base address.
Exceptions
ExceptionCondition
ArgumentNullException Thrown if serviceType or baseAddresses is .
See Also