Update x timing gestione cehck tickets allarmi
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<Platforms>AnyCPU;x86;x64</Platforms>
|
||||
<Version>1.2.2304.809</Version>
|
||||
<Version>1.2.2304.811</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>MAPO-MONO</i>
|
||||
<h4>Version: 1.2.2304.809</h4>
|
||||
<h4>Version: 1.2.2304.811</h4>
|
||||
<br /> Release Note:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
1.2.2304.809
|
||||
1.2.2304.811
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>1.2.2304.809</version>
|
||||
<version>1.2.2304.811</version>
|
||||
<url>http://nexus.steamware.net/repository/SWS/MP.MONO.ANALYZER/stable/LAST/MP.Mon.zip</url>
|
||||
<changelog>http://nexus.steamware.net/repository/SWS/MP.MONO.ANALYZER/stable/LAST/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
@@ -121,8 +121,8 @@ namespace MP.MONO.DECODER
|
||||
{
|
||||
// incremento contatore
|
||||
ticketNum++;
|
||||
// faccio coda 0...999
|
||||
ticketNum = ticketNum > 999 ? 1 : ticketNum;
|
||||
// faccio coda 0...9999
|
||||
ticketNum = ticketNum > 9999 ? 1 : ticketNum;
|
||||
// accodo...
|
||||
reqList.Enqueue(ticketNum);
|
||||
// rendo ticket
|
||||
@@ -147,7 +147,7 @@ namespace MP.MONO.DECODER
|
||||
/// </summary>
|
||||
/// <param name="ticket"></param>
|
||||
/// <returns></returns>
|
||||
public static bool checklTicket(int ticket)
|
||||
public static bool checkTicket(int ticket)
|
||||
{
|
||||
bool fatto = false;
|
||||
if (!isProcessing)
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<Platforms>AnyCPU;x86;x64</Platforms>
|
||||
<Version>1.2.2304.809</Version>
|
||||
<Version>1.2.2304.811</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -52,6 +52,7 @@
|
||||
-->
|
||||
<!--<logger name="Microsoft.*" maxlevel="Info" final="true" />-->
|
||||
<!--<logger name="*" minlevel="Debug" writeTo="consoleTarget" />-->
|
||||
<logger name="*" minlevel="Info" writeTo="consoleTarget" />
|
||||
<logger name="*" minlevel="Info" writeTo="fileTarget" />
|
||||
</rules>
|
||||
</nlog>
|
||||
@@ -951,19 +951,19 @@ async void AlarmsValPipe_EA_NewMessage(object? sender, EventArgs e)
|
||||
{
|
||||
myTicket = AlarmsBlinkManager.getTicket();
|
||||
// attendo che NON ci siano altri processi in coda...
|
||||
while (!AlarmsBlinkManager.checklTicket(myTicket))
|
||||
while (!AlarmsBlinkManager.checkTicket(myTicket))
|
||||
{
|
||||
await Task.Delay(rand.Next(10, 30));
|
||||
await Task.Delay(rand.Next(100, 130));
|
||||
if (numTry % 2 == 0)
|
||||
{
|
||||
TimeSpan ts = DateTime.Now.Subtract(adesso);
|
||||
Log.Info($"Ticket {myTicket} | total wait {ts.TotalMilliseconds:N3}ms");
|
||||
Log.Debug($"Ticket {myTicket} | total wait {ts.TotalMilliseconds:N3}ms");
|
||||
}
|
||||
numTry++;
|
||||
}
|
||||
|
||||
stopWatch.Start();
|
||||
Log.Debug($"---------- INIZIO ticket {myTicket} ---------- ");
|
||||
Log.Info($"---------- INIZIO ticket {myTicket} ---------- ");
|
||||
|
||||
// decodifico allarmi ricevuti
|
||||
var alarmListRaw = JsonConvert.DeserializeObject<List<string>>(currArgs.newMessage);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>MAPO-MONO</i>
|
||||
<h4>Version: 1.2.2304.809</h4>
|
||||
<h4>Version: 1.2.2304.811</h4>
|
||||
<br /> Release Note:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
1.2.2304.809
|
||||
1.2.2304.811
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>1.2.2304.809</version>
|
||||
<version>1.2.2304.811</version>
|
||||
<url>http://nexus.steamware.net/repository/SWS/MP.MONO.DECODER/stable/LAST/MP.Mon.zip</url>
|
||||
<changelog>http://nexus.steamware.net/repository/SWS/MP.MONO.DECODER/stable/LAST/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<Platforms>AnyCPU;x86;x64</Platforms>
|
||||
<Version>1.2.2304.809</Version>
|
||||
<Version>1.2.2304.811</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>MAPO-MONO</i>
|
||||
<h4>Version: 1.2.2304.809</h4>
|
||||
<h4>Version: 1.2.2304.811</h4>
|
||||
<br /> Release Note:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
1.2.2304.809
|
||||
1.2.2304.811
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>1.2.2304.809</version>
|
||||
<version>1.2.2304.811</version>
|
||||
<url>http://nexus.steamware.net/repository/SWS/MP.MONO.SIM/stable/LAST/MP.Mon.zip</url>
|
||||
<changelog>http://nexus.steamware.net/repository/SWS/MP.MONO.SIM/stable/LAST/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Platforms>AnyCPU;x86;x64</Platforms>
|
||||
<Version>1.2.2304.809</Version>
|
||||
<Version>1.2.2304.811</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>MAPO-MONO</i>
|
||||
<h4>Version: 1.2.2304.809</h4>
|
||||
<h4>Version: 1.2.2304.811</h4>
|
||||
<br /> Release Note:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
1.2.2304.809
|
||||
1.2.2304.811
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>1.2.2304.809</version>
|
||||
<version>1.2.2304.811</version>
|
||||
<url>http://nexus.steamware.net/repository/SWS/MP.MONO.UI/stable/LAST/MP.Mon.zip</url>
|
||||
<changelog>http://nexus.steamware.net/repository/SWS/MP.MONO.UI/stable/LAST/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
Reference in New Issue
Block a user