Registration Class

Simple Injector
A Registration implements lifestyle based caching for a single service and allows building an Expression that describes the creation of the service.
Inheritance Hierarchy


Namespace:  SimpleInjector
Assemblies:   SimpleInjector.Integration.AspNetCore.Mvc.Core (in SimpleInjector.Integration.AspNetCore.Mvc.Core.dll) Version: 4.1.0-alpha1
  SimpleInjector (in SimpleInjector.dll) Version: 4.4.0

public class Registration

Lifestyle implementations create a new Registration instance for each registered service type. Expressions returned from the BuildExpression method can be intercepted by any event registered with ExpressionBuilding, have initializers applied, and the caching particular to its lifestyle have been applied. Interception using the Container.ExpressionBuilt will not be applied in the Registration, but will be applied in InstanceProducer.

See the Lifestyle documentation for an example.
See Also