TypeFactoryContextConsumer Property

Simple Injector
Gets the contextual information of the consuming component that directly depends on the resolved service. This property will return null in case the service is resolved directly from the container.

Namespace:  SimpleInjector
Assembly:  SimpleInjector (in SimpleInjector.dll) Version: 5.3.0

public InjectionConsumerInfo Consumer { get; }

Property Value

Type: InjectionConsumerInfo
The InjectionConsumerInfo or null.
See Also