SimpleInjectorServiceHostFactoryCreateServiceHost Method

Simple Injector
Creates a SimpleInjectorServiceHost for a specified type of service with a specific base address.

Namespace:  SimpleInjector.Integration.Wcf
Assembly:  SimpleInjector.Integration.Wcf (in SimpleInjector.Integration.Wcf.dll) Version: 4.0.0
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 SimpleInjectorServiceHost for the type of service specified with a specific base address.
Exceptions

ExceptionCondition
ArgumentNullExceptionThrown when serviceType is a null reference.
See Also

Reference