Note: This API is now obsolete.
This overload has been deprecated. Please call CreateRegistration(Type, Container)
instead.
Namespace: SimpleInjector
Assembly: SimpleInjector (in SimpleInjector.dll) Version: 4.10.2
Syntax
[ObsoleteAttribute("Please use CreateRegistration(Type, Container) instead. Will be removed in version 5.0.", true)] [EditorBrowsableAttribute(EditorBrowsableState.Never)] public Registration CreateRegistration( Type serviceType, Type implementationType, Container container )
Parameters
- serviceType
- Type: SystemType
The interface or base type that can be used to retrieve the instances. - implementationType
- 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 (Nothing in VB). |
See Also