LifestyleCreateRegistrationCoreTConcrete Method (Container)

Simple Injector
When overridden in a derived class, creates a new Registration instance defining the creation of the specified TConcrete with the caching as specified by this lifestyle.

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

protected abstract Registration CreateRegistrationCore<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 Registration instance.
Remarks

If you are implementing your own lifestyle, override this method to implement the code necessary to create and return a new Registration. Note that you should always create a new Registration instance. They should never be cached.
See Also

Reference