PredicateContextConsumer 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: 4.0.0
Syntax

public InjectionConsumerInfo Consumer { get; }

Property Value

Type: InjectionConsumerInfo
The InjectionConsumerInfo or null.
See Also

Reference