PredicateContextHasConsumer Property

Simple Injector
Gets a value indicating whether the resolved service is injected into a consumer or is requested directly from the container.

Namespace:  SimpleInjector
Assembly:  SimpleInjector (in SimpleInjector.dll) Version: 5.0.0
Syntax

public bool HasConsumer { get; }

Property Value

Type: Boolean
True when the service is injected into a consumer; false when it is requested directly from the container
See Also

Reference