Skip to main content
A newer version of this page is available. .
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.

StartupExtensions.AddXafDashboards(IServiceCollection, Action<BlazorDashboardConfigurator, IServiceProvider>) Method

Registers the required Dashboards Module services in the application’s IServiceCollection.

Namespace: DevExpress.ExpressApp.Dashboards.Blazor

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

NuGet Package: DevExpress.ExpressApp.Dashboards.Blazor

Declaration

public static IServiceCollection AddXafDashboards(
    this IServiceCollection services,
    Action<BlazorDashboardConfigurator, IServiceProvider> configure = null
)

Parameters

Name Type Description
services IServiceCollection

The collection of services registered in your application.

Optional Parameters

Name Type Default Description
configure Action<BlazorDashboardConfigurator, IServiceProvider> null

A delegate that allows you to customize the BlazorDashboardConfigurator settings.

Returns

Type Description
IServiceCollection

The collection of services registered in your application. Allows you to chain further service registrations.

Remarks

Call this method in the Startup.ConfigureServices method when you add the Dashboards Module to your ASP.NET Core Blazor application:

File: MySolution.Blazor.Server\Startup.cs.

using DevExpress.ExpressApp.Dashboards.Blazor;
// ...
public class Startup {
    // ...
    public void ConfigureServices(IServiceCollection services){
        //...
        services.AddXafDashboards();
    }
    // ...
}
See Also