Skip to main content
All docs
V23.1
.NET 6.0+
  • The page you are viewing does not exist in the .NET Framework 4.5.2+ platform documentation. This link will take you to the parent topic of the current section.
  • The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.

AspNetCoreApplication.ServiceProvider Property

Provides access to the ServiceProvider.

Namespace: DevExpress.ExpressApp.AspNetCore

Assembly: DevExpress.ExpressApp.AspNetCore.v23.1.dll

NuGet Package: DevExpress.ExpressApp.AspNetCore

Declaration

public IServiceProvider ServiceProvider { get; set; }

Property Value

Type Description
IServiceProvider

In object that implements the IServiceProvider interface.

Remarks

To access IServiceProvider, use the following code: ((BlazorApplication)yourXafApplicationInstance).ServiceProvider. For more information, see Dependency Injection.

You may find the following examples helpful:

See Also