Skip to main content
All docs
V21.2
.NET 5.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.

BlazorApplication.ServiceProvider Property

Provides access to the ServiceProvider.

Namespace: DevExpress.ExpressApp.Blazor

Assembly: DevExpress.ExpressApp.Blazor.v21.2.dll

NuGet Package: DevExpress.ExpressApp.Blazor

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