Assembly: SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
public InstanceProducer GetRegistration( Type serviceType, bool throwOnFailure )
Public Function GetRegistration ( serviceType As Type, throwOnFailure As Boolean ) As InstanceProducer
- Type: SystemType
The Type that the returned instance producer should produce.
- Type: SystemBoolean
The indication whether the method should return null or throw an exception when the type is not registered.
Return ValueType: InstanceProducer
An InstanceProducer or null.
A call to this method might lock the container.
Note: This method is not guaranteed to always return the same InstanceProducer instance for a given Type. It will however either always return null or always return a producer that is able to return the expected instance.