ServiceProvider Property
ServiceProvider
Gets the IServiceProvider.
Declaration
public virtual IServiceProvider ServiceProvider { get; }
Property Value
IServiceProvider | The service provider. |
Remarks
In dependency-injection scenario the service provider may be available,
so that service factories can return injected services. In non-dependency-injection
scenario, this returns null
.