@if (isLoading)
{
- @*
*@
+
}
else if (ListRecords == null)
diff --git a/MP.Stats/Pages/TaskScheduler.razor.cs b/MP.Stats/Pages/TaskScheduler.razor.cs
index ba3ccc05..929a4150 100644
--- a/MP.Stats/Pages/TaskScheduler.razor.cs
+++ b/MP.Stats/Pages/TaskScheduler.razor.cs
@@ -135,6 +135,19 @@ namespace MP.Stats.Pages
await StatService.FlushAll();
await ReloadData();
}
+ private double currVal = 0;
+ private double nextVal = 0;
+ private int MaxVal = 10;
+ ///
+ /// Gestione display avanzamento step
+ ///
+ ///
+ protected async Task advStep(int currStep)
+ {
+ currVal = currStep;
+ nextVal = currVal + 1;
+ await InvokeAsync(StateHasChanged);
+ }
protected async Task doRun(TaskListModel selRec)
{
@@ -143,14 +156,21 @@ namespace MP.Stats.Pages
return;
// imposto tempo atteso esecuzione da ultimo...
- lastExeTime = (int)(1000 * selRec.LastDuration);
isLoading = true;
+ MaxVal = 4;
+ int currStep = 0;
+ await advStep(currStep);
+ expTimeMsec = (int)(1000 * selRec.LastDuration) / 4;
detRecord = null;
+ await advStep(currStep++);
await Task.Delay(100);
+ await advStep(currStep++);
// chiama esecuzione task
var result = await StatService.ExecuteTask(selRec.TaskId);
+ await advStep(currStep++);
isLoading = false;
await Task.Delay(100);
+ await advStep(currStep++);
await ReloadData();
}
@@ -286,7 +306,7 @@ namespace MP.Stats.Pages
private bool isLoading { get; set; } = false;
- private int lastExeTime { get; set; } = 30000;
+ private int expTimeMsec { get; set; } = 30000;
private int numRecord { get; set; } = 10;
diff --git a/MP.Stats/Resources/ChangeLog.html b/MP.Stats/Resources/ChangeLog.html
index c435d8fe..6ef61bf4 100644
--- a/MP.Stats/Resources/ChangeLog.html
+++ b/MP.Stats/Resources/ChangeLog.html
@@ -1,6 +1,6 @@
Modulo statistiche MAPO
-
Versione: 6.16.2404.0308
+
Versione: 6.16.2404.0309
Note di rilascio:
diff --git a/MP.Stats/Resources/VersNum.txt b/MP.Stats/Resources/VersNum.txt
index d968b308..5ba9d076 100644
--- a/MP.Stats/Resources/VersNum.txt
+++ b/MP.Stats/Resources/VersNum.txt
@@ -1 +1 @@
-6.16.2404.0308
+6.16.2404.0309
diff --git a/MP.Stats/Resources/manifest.xml b/MP.Stats/Resources/manifest.xml
index d5f42470..9f6a0068 100644
--- a/MP.Stats/Resources/manifest.xml
+++ b/MP.Stats/Resources/manifest.xml
@@ -1,6 +1,6 @@
-
- 6.16.2404.0308
+ 6.16.2404.0309
https://nexus.steamware.net/repository/SWS/MP-STATS/stable/LAST/MP.Stats.zip
https://nexus.steamware.net/repository/SWS/MP-STATS/stable/LAST/ChangeLog.html
false
diff --git a/MP.Stats/Startup.cs b/MP.Stats/Startup.cs
index f512bd48..6d2f1ee1 100644
--- a/MP.Stats/Startup.cs
+++ b/MP.Stats/Startup.cs
@@ -6,6 +6,7 @@ using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using MP.Stats.Data;
+using StackExchange.Redis;
using System.Globalization;
namespace MP.Stats
@@ -90,6 +91,16 @@ namespace MP.Stats
options.InstanceName = "MP:Stats";
});
+ // REDIS setup
+ var cString = Configuration.GetConnectionString("Redis");
+ string connStringRedis = cString ?? "localhost:6379, DefaultDatabase=5, connectTimeout=5000, syncTimeout=5000, asyncTimeout=5000, abortConnect=false, ssl=false";
+ // avvio oggetto shared x redis...
+ var redisMultiplexer = ConnectionMultiplexer.Connect(connStringRedis);
+
+ // Add services x accesso dati
+ services.AddSingleton(redisMultiplexer);
+
+
services.AddLocalization();
services.AddRazorPages();
diff --git a/MP.Stats/appsettings.json b/MP.Stats/appsettings.json
index cb1e3270..0c2e0de4 100644
--- a/MP.Stats/appsettings.json
+++ b/MP.Stats/appsettings.json
@@ -7,9 +7,11 @@
}
},
"AllowedHosts": "*",
- "ConnectionStrings": {
- "DefaultConnection": "Server=SQL2016DEV;Database=MoonPro_STATS;Trusted_Connection=True;MultipleActiveResultSets=true",
- "MP.Stats": "Server=SQL2016DEV;Database=MoonPro_STATS;User ID=sa;Password=keyhammer16;integrated security=False;MultipleActiveResultSets=True;App=MP.STATS;"
- },
+ "ConnectionStrings": {
+ "Redis": "localhost:6379,DefaultDatabase=5,connectTimeout=5000,syncTimeout=5000,asyncTimeout=5000,abortConnect=false,ssl=false,allowAdmin=true",
+ //"Redis": "localhost:26379,serviceName=devel,DefaultDatabase=5,connectTimeout=5000,syncTimeout=5000,asyncTimeout=5000,abortConnect=false,ssl=false,allowAdmin=true",
+ "DefaultConnection": "Server=SQL2016DEV;Database=MoonPro_STATS;Trusted_Connection=True;MultipleActiveResultSets=true",
+ "MP.Stats": "Server=SQL2016DEV;Database=MoonPro_STATS;User ID=sa;Password=keyhammer16;integrated security=False;MultipleActiveResultSets=True;App=MP.STATS;"
+ },
"FormatDur": "HH:mm.ss.ff"
}
\ No newline at end of file