Aggiunto reset forzato x SPEC

This commit is contained in:
Samuele Locatelli
2026-06-12 16:58:15 +02:00
parent 3c42f0ab83
commit 1ff5b10a8f
6 changed files with 21 additions and 4 deletions
+9
View File
@@ -2,6 +2,7 @@ using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Authorization;
using Microsoft.JSInterop;
using MP.AppAuth.Services;
using MP.Data.DbModels;
using MP.SPEC.Data;
using MP.SPEC.Extensions;
@@ -52,6 +53,14 @@ namespace MP.SPEC.Components
protected async Task FlushCache()
{
// svuoto cache redis...
ConfigModel updRec = new ConfigModel()
{
Chiave = "AZIENDA",
Valore = "*"
};
await MDService.ConfigUpdateAsync(updRec);
await MDService.ForceFlushRedisCache();
await MDService.ForceFlushFusionCacheAsync();
await ForceReload();
+1 -1
View File
@@ -5,7 +5,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>MP.SPEC</RootNamespace>
<Version>8.16.2606.1215</Version>
<Version>8.16.2606.1216</Version>
<UserSecretsId>1800a78a-6ff1-40f9-b490-87fb8bfc1394</UserSecretsId>
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
</PropertyGroup>
+8
View File
@@ -1,4 +1,5 @@
@page "/force-reset"
@page "/ForceReset"
@using MP.AppAuth.Services
@using MP.SPEC.Data
@@ -47,6 +48,13 @@
nextVal = 10;
await InvokeAsync(StateHasChanged);
await Task.Delay(bDelay);
// svuoto cache redis...
ConfigModel updRec = new ConfigModel()
{
Chiave = "AZIENDA",
Valore = "*"
};
await MDService.ConfigUpdateAsync(updRec);
title = "UserDataReload...";
currVal = 50;
nextVal = 80;
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>Modulo MAPOSPEC </i>
<h4>Versione: 8.16.2606.1215</h4>
<h4>Versione: 8.16.2606.1216</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
8.16.2606.1215
8.16.2606.1216
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>8.16.2606.1215</version>
<version>8.16.2606.1216</version>
<url>https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/MP.SPEC.zip</url>
<changelog>https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory>