ContainerGetRegistration Method

Simple Injector
Overload List

  NameDescription
Public methodGetRegistration(Type)
Gets the InstanceProducer for the given serviceType. When no registration exists, the container will try creating a new producer. A producer can be created when the type is a concrete reference type, there is an ResolveUnregisteredType event registered that acts on that type, or when the service type is an IEnumerableT. Otherwise null (Nothing in VB) is returned.
Public methodGetRegistration(Type, Boolean)
Gets the InstanceProducer for the given serviceType. When no registration exists, the container will try creating a new producer. A producer can be created when the type is a concrete reference type, there is an ResolveUnregisteredType event registered that acts on that type, or when the service type is an IEnumerableT. Otherwise null (Nothing in VB) is returned, or an exception is throw when throwOnFailure is set to true.
Top
See Also

Reference