Update MON x refresh orologio ogni sec

This commit is contained in:
Samuele Locatelli
2024-03-01 10:33:00 +01:00
parent 2b02a91627
commit 331eb59c73
6 changed files with 23 additions and 7 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ using NLog;
namespace MP.Mon.Components
{
public partial class CmpFooter
public partial class CmpFooter:IDisposable
{
#region Public Methods
@@ -26,7 +26,7 @@ namespace MP.Mon.Components
public void StartTimer()
{
int tOutPeriod = 5000;
int tOutPeriod = 1000;
//int.TryParse(Configuration["ReloadStatusTimer"], out tOutPeriod);
aTimer = new System.Timers.Timer(tOutPeriod);
aTimer.Elapsed += ElapsedTimer;
+1 -1
View File
@@ -4,7 +4,7 @@
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<Version>6.16.2402.2709</Version>
<Version>6.16.2403.110</Version>
</PropertyGroup>
<ItemGroup>
+17 -1
View File
@@ -32,7 +32,7 @@
<script src="_framework/blazor.server.js" autostart="false"></script>
@*Gestione autoriconnessione: https://github.com/dotnet/aspnetcore/issues/38305 (vedere anche https://docs.microsoft.com/it-it/aspnet/core/blazor/fundamentals/signalr?view=aspnetcore-6.0#modify-the-reconnection-handler-blazor-server)*@
<script>
@* <script>
Blazor.start({
reconnectionOptions: {
maxRetries: 600,
@@ -56,6 +56,22 @@
}
});
});
</script> *@
<script>
Blazor.start({
reconnectionOptions: {
maxRetries: 3000,
retryIntervalMilliseconds: 2000
},
reconnectionHandler: {
onConnectionDown: (options, error) => console.error(error),
onConnectionUp: () => console.log("Client reconnected!")
}
}).then(() => {
Blazor.defaultReconnectionHandler._reconnectCallback = function (d) {
document.location.reload();
}
});
</script>
</body>
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>Modulo MON MAPO</i>
<h4>Versione: 6.16.2402.2709</h4>
<h4>Versione: 6.16.2403.110</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
6.16.2402.2709
6.16.2403.110
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>6.16.2402.2709</version>
<version>6.16.2403.110</version>
<url>https://nexus.steamware.net/repository/SWS/MP-MON/stable/LAST/MP.Mon.zip</url>
<changelog>https://nexus.steamware.net/repository/SWS/MP-MON/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory>