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.
Namespace: SimpleInjector
Assembly: SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
Syntax
Parameters
- concreteType
- 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: RegistrationA new Registration instance.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when on of the supplied arguments is a null reference. |
See Also