LifestyleCreateRegistrationTConcrete Method (Container)

Simple Injector
Creates a new Registration instance defining the creation of the specified TConcrete with the caching as specified by this lifestyle, or returns an already created Registration instance for this container + lifestyle + type combination.

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

public Registration CreateRegistration<TConcrete>(
	Container container
)
where TConcrete : class

Parameters

container
Type: SimpleInjectorContainer
The Container instance for which a Registration must be created.

Type Parameters

TConcrete
The concrete type that will be registered.

Return Value

Type: Registration
A new or cached Registration instance.
Exceptions

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

Reference