SingletonLifestyleCreateRegistration Method

Simple Injector
Overload List

  NameDescription
Public methodCreateRegistrationTConcrete(Container)
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.
(Inherited from Lifestyle.)
Public methodCreateRegistrationTService(FuncTService, Container)
Creates a new Registration instance defining the creation of the specified TService using the supplied instanceCreator with the caching as specified by this lifestyle.
(Inherited from Lifestyle.)
Public methodCreateRegistration(Type, Container)
Creates a new Registration instance defining the creation of the specified concreteType with the caching as specified by this lifestyle, or returns an already created Registration instance for this container + lifestyle + type combination. This method might fail when run in a partial trust sandbox when concreteType is an internal type.
(Inherited from Lifestyle.)
Public methodCreateRegistration(Type, FuncObject, Container)
Creates a new Registration instance defining the creation of the specified serviceType using the supplied instanceCreator with the caching as specified by this lifestyle.
Public methodCreateRegistration(Type, Object, Container)
Creates a new Registration instance defining the creation of the specified instance. Properties, decorators, interceptors, and initializers may be applied to this instance.
Top
See Also

Reference