Merge branch 'Release/MpMon_08'
This commit is contained in:
@@ -11,28 +11,29 @@
|
||||
<link rel="stylesheet" href="lib/font-awesome/css/all.min.css" />
|
||||
<link rel="stylesheet" href="MP.MON.styles.css" />
|
||||
<link rel="icon" type="image/png" href="favicon.ico" />
|
||||
<HeadOutlet />
|
||||
<HeadOutlet @rendermode=@(new InteractiveServerRenderMode(prerender: false)) />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<Routes />
|
||||
<Routes @rendermode=@(new InteractiveServerRenderMode(prerender: false)) />
|
||||
<script src="lib/WindowSize.js"></script>
|
||||
<script src="_framework/blazor.web.js"></script>
|
||||
@* <script>
|
||||
@* <script src="_framework/blazor.web.js"></script> *@
|
||||
<script src="_framework/blazor.server.js" autostart="false"></script>
|
||||
<script>
|
||||
Blazor.start({
|
||||
reconnectionOptions: {
|
||||
maxRetries: 600,
|
||||
maxRetries: 36000,
|
||||
retryIntervalMilliseconds: 1000
|
||||
},
|
||||
}).then(() => {
|
||||
Blazor.defaultReconnectionHandler._reconnectCallback = function (d) {
|
||||
console.log("Client reconnected, waiting 5 sec and reload!");
|
||||
console.log("Client reconnected, waiting 3 sec and reload!");
|
||||
setTimeout(function () {
|
||||
document.location.reload();
|
||||
}, 5000);
|
||||
}, 3000);
|
||||
}
|
||||
});
|
||||
</script> *@
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
@@ -4,7 +4,7 @@ using System;
|
||||
|
||||
namespace MP.MON.Components.Compo
|
||||
{
|
||||
public partial class CmpFooter : ComponentBase, IDisposable
|
||||
public partial class CmpFooter : ComponentBase //, IDisposable
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace MP.MON.Components.Compo
|
||||
|
||||
#region Public Methods
|
||||
|
||||
#if false
|
||||
public void Dispose()
|
||||
{
|
||||
aTimer.Stop();
|
||||
@@ -39,7 +40,8 @@ namespace MP.MON.Components.Compo
|
||||
aTimer.Elapsed += ElapsedTimer;
|
||||
aTimer.Enabled = true;
|
||||
aTimer.Start();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#endregion Public Methods
|
||||
|
||||
@@ -86,7 +88,9 @@ namespace MP.MON.Components.Compo
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
StartTimer();
|
||||
#if false
|
||||
StartTimer();
|
||||
#endif
|
||||
Console.WriteLine($"OnInitialized Footer completato");
|
||||
}
|
||||
|
||||
|
||||
@@ -2,15 +2,9 @@ using Microsoft.AspNetCore.Components;
|
||||
|
||||
namespace MP.MON.Components.Compo
|
||||
{
|
||||
public partial class CmpHeader: ComponentBase, IDisposable
|
||||
public partial class CmpHeader : ComponentBase, IDisposable
|
||||
{
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
StartTimer();
|
||||
Console.WriteLine($"OnInitialized Header completato");
|
||||
}
|
||||
|
||||
#region Public Methods
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
@@ -18,17 +12,6 @@ namespace MP.MON.Components.Compo
|
||||
aTimer.Dispose();
|
||||
}
|
||||
|
||||
private static System.Timers.Timer aTimer;
|
||||
|
||||
public void StartTimer()
|
||||
{
|
||||
int tOutPeriod = 1000;
|
||||
aTimer = new System.Timers.Timer(tOutPeriod);
|
||||
aTimer.Elapsed += ElapsedTimer;
|
||||
aTimer.Enabled = true;
|
||||
aTimer.Start();
|
||||
}
|
||||
|
||||
public void ElapsedTimer(Object source, System.Timers.ElapsedEventArgs e)
|
||||
{
|
||||
var pUpd = Task.Run(async () =>
|
||||
@@ -40,5 +23,31 @@ namespace MP.MON.Components.Compo
|
||||
pUpd.Wait();
|
||||
}
|
||||
|
||||
public void StartTimer()
|
||||
{
|
||||
int tOutPeriod = 1000;
|
||||
aTimer = new System.Timers.Timer(tOutPeriod);
|
||||
aTimer.Elapsed += ElapsedTimer;
|
||||
aTimer.Enabled = true;
|
||||
aTimer.Start();
|
||||
}
|
||||
|
||||
#endregion Public Methods
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
StartTimer();
|
||||
Console.WriteLine($"OnInitialized Header completato");
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
#region Private Fields
|
||||
|
||||
private static System.Timers.Timer aTimer = null!;
|
||||
|
||||
#endregion Private Fields
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,7 @@
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<RootNamespace>MP.MON</RootNamespace>
|
||||
<AssemblyName>$(AssemblyName.Replace(' ', '_'))</AssemblyName>
|
||||
<Version>6.16.2503.1819</Version>
|
||||
<Version>6.16.2503.1907</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>Modulo MAPOSPEC </i>
|
||||
<h4>Versione: 6.16.2503.1819</h4>
|
||||
<h4>Versione: 6.16.2503.1907</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
6.16.2503.1819
|
||||
6.16.2503.1907
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>6.16.2503.1819</version>
|
||||
<version>6.16.2503.1907</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>
|
||||
|
||||
Reference in New Issue
Block a user