Files
lux/TestDevExpress/Program.cs
T
2026-03-31 16:57:47 +02:00

38 lines
968 B
C#

using DevExpress.Blazor.Reporting;
using DevExpress.XtraReports.Web.Extensions;
using TestDevExpress.Components;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddRazorComponents()
.AddInteractiveServerComponents();
//builder.Services.AddDevExpressBlazor();
builder.Services.AddDevExpressServerSideBlazorReportViewer();
builder.Services.AddMvc();
builder.Services.AddDevExpressBlazorReporting();
builder.WebHost.UseWebRoot("wwwroot");
builder.WebHost.UseStaticWebAssets();
builder.Services.AddScoped<ReportStorageWebExtension, CustomReportStorageWebExtension>();
var app = builder.Build();
app.UseDevExpressBlazorReporting();
// Configure the HTTP request pipeline.
if (!app.Environment.IsDevelopment())
{
app.UseExceptionHandler("/Error", createScopeForErrors: true);
}
app.UseStaticFiles();
app.UseAntiforgery();
app.MapRazorComponents<App>()
.AddInteractiveServerRenderMode();
app.Run();