LifestyleCreateRegistration Method (Type, Type, Container)

Simple Injector

Note: This API is now obsolete.

This overload has been deprecated. Please call CreateRegistration(Type, Container) instead.

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

[ObsoleteAttribute("This overload has been deprecated. Please call CreateRegistration(Type, Container) instead.", 
	false)]
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public Registration CreateRegistration(
	Type serviceType,
	Type implementationType,
	Container container
)

Parameters

serviceType
Type: SystemType
The interface or base type that can be used to retrieve the instances.
implementationType
Type: SystemType
The concrete type that will be registered.
container
Type: SimpleInjectorContainer
The Container instance for which a Registration must be created.

Return Value

Type: Registration
A new Registration instance.
Exceptions

ExceptionCondition
ArgumentNullExceptionThrown when on of the supplied arguments is a null reference (Nothing in VB).
See Also

Reference