SimpleInjectorWcfExtensionsRegisterWcfServices Method

Simple Injector
Registers the WCF services instances (public classes that implement an interface that is decorated with a ServiceContractAttribute) that are declared as public non-abstract in the supplied set of assemblies.

Namespace:  SimpleInjector
Assembly:  SimpleInjector.Integration.Wcf (in SimpleInjector.Integration.Wcf.dll) Version: 4.0.0
Syntax

public static void RegisterWcfServices(
	this Container container,
	params Assembly[] assemblies
)

Parameters

container
Type: SimpleInjectorContainer
The container the services should be registered in.
assemblies
Type: System.ReflectionAssembly
The assemblies to search.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Container. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions

ExceptionCondition
ArgumentNullExceptionThrown when the container is a null reference (Nothing in VB).
See Also

Reference