Skip to main content
All docs
V23.2

StartupExtensions.AddDevExpressBlazorReportingWebAssembly(IServiceCollection, Action<BlazorWasmReportingConfigurationBuilder>) Method

Adds the DevExpress Blazor Reporting services to the IServiceCollection collection.

Namespace: DevExpress.Blazor.Reporting

Assembly: DevExpress.Blazor.Reporting.v23.2.JSBasedControls.dll

NuGet Package: DevExpress.Blazor.Reporting.JSBasedControls

Declaration

public static IServiceCollection AddDevExpressBlazorReportingWebAssembly(
    this IServiceCollection services,
    Action<BlazorWasmReportingConfigurationBuilder> configure
)

Parameters

Name Type Description
services IServiceCollection

A list of service descriptor objects that define services in an application.

configure Action<BlazorWasmReportingConfigurationBuilder>

An Action<T> delegate method.

Returns

Type Description
IServiceCollection

An updated list of service descriptor objects for subsequent use.

Remarks

The AddDevExpressBlazorReporting method is used to configure DevExpress Blazor Reporting services in a Blazor application. Call the AddDevExpressBlazor method at the application startup:

using DevExpress.AspNetCore;
using DevExpress.Blazor.Reporting;

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddDevExpressBlazorReporting();

var app = builder.Build();
See Also