Update con nuovo nuget: ok pagina 2 di test

This commit is contained in:
2025-07-23 08:56:03 +02:00
parent 2b0ee5ffcb
commit 1260028cb2
5 changed files with 33 additions and 5 deletions
+20
View File
@@ -1,13 +1,33 @@
using EgwCoreLib.Lux.Data.Services;
using Microsoft.Extensions.Configuration;
using StackExchange.Redis;
using System.Reflection;
using Test.UI.Client.Pages;
using Test.UI.Components;
var builder = WebApplication.CreateBuilder(args);
var assemblyVersion = Assembly.GetExecutingAssembly().GetName().Version?.ToString();
ConfigurationManager configuration = builder.Configuration;
// Add services to the container.
builder.Services.AddRazorComponents()
.AddInteractiveServerComponents()
.AddInteractiveWebAssemblyComponents();
// costruzione connectionMultiplexer redis...
string connStr = configuration.GetConnectionString("Redis") ?? "localhost";
ConnectionMultiplexer redisConn = ConnectionMultiplexer.Connect(connStr);
// registro connMultiplexer REDIS
builder.Services.AddSingleton<IConnectionMultiplexer>(redisConn);
// registro wrapper servizi REDIS
builder.Services.AddSingleton<IRedisService, RedisService>();
builder.Services.AddSingleton<RedisSubscriptionManager>();
builder.Services.AddSingleton<ImageCacheService>();
var app = builder.Build();
// Configure the HTTP request pipeline.