Aggiunto componenti x test RadZen Scheduler

This commit is contained in:
Samuele Locatelli
2024-09-06 08:43:12 +02:00
parent bc458303fc
commit 2dde594e40
11 changed files with 366 additions and 6 deletions
+15 -5
View File
@@ -1,6 +1,7 @@
using EgwCoreLib.BlazorTest;
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Web;
using Radzen;
var builder = WebApplication.CreateBuilder(args);
@@ -8,6 +9,15 @@ var builder = WebApplication.CreateBuilder(args);
builder.Services.AddRazorPages();
builder.Services.AddServerSideBlazor();
// aggiunto compressione
builder.Services.AddResponseCompression(options =>
{
options.EnableForHttps = true;
});
// aggiungo componenti radzen
builder.Services.AddRadzenComponents();
var app = builder.Build();
// Configure the HTTP request pipeline.
@@ -18,11 +28,11 @@ if (!app.Environment.IsDevelopment())
app.UseHsts();
}
//// disabilita risposta compressa in debug
//if (!app.Environment.IsDevelopment())
//{
// app.UseResponseCompression();
//}
// disabilita risposta compressa in debug
if (!app.Environment.IsDevelopment())
{
app.UseResponseCompression();
}
app.UseHttpsRedirection();