Trasformazione async metodi SaveSendMessages
This commit is contained in:
@@ -55,7 +55,7 @@ namespace MP.SPEC.Components
|
||||
}
|
||||
// eseguo chiusura finale
|
||||
CurrAction.IsActive = false;
|
||||
MDService.ActionSetReq(CurrAction);
|
||||
MDService.ActionSetReqAsync(CurrAction);
|
||||
await Task.Delay(1);
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ namespace MP.SPEC.Components
|
||||
}
|
||||
}
|
||||
|
||||
MDService.ActionSetReq(CurrAction);
|
||||
MDService.ActionSetReqAsync(CurrAction);
|
||||
await Task.Delay(1);
|
||||
// se fatto --> ricarico!
|
||||
if (fatto)
|
||||
|
||||
@@ -129,18 +129,18 @@ namespace MP.SPEC.Data
|
||||
/// </summary>
|
||||
/// <param name="act2save"></param>
|
||||
/// <returns></returns>
|
||||
public bool ActionSetReq(DisplayAction? act2save)
|
||||
public async Task<bool> ActionSetReqAsync(DisplayAction? act2save)
|
||||
{
|
||||
using var activity = ActivitySource.StartActivity("ActionSetReq");
|
||||
using var activity = ActivitySource.StartActivity("ActionSetReqAsync");
|
||||
string source = "REDIS";
|
||||
bool fatto = false;
|
||||
// cerco in redis...
|
||||
string rawData = JsonConvert.SerializeObject(act2save);
|
||||
// invio broadcast + salvo in redis
|
||||
BroadastMsgPipe.saveAndSendMessage(Utils.redisActionReq, rawData);
|
||||
await BroadastMsgPipe.SaveAndSendMessageAsync(Utils.redisActionReq, rawData);
|
||||
activity?.SetTag("data.source", source);
|
||||
activity?.Stop();
|
||||
LogTrace($"ActionSetReq {source} send to broadcast + Write cache: {activity?.Duration.TotalMilliseconds}ms");
|
||||
LogTrace($"ActionSetReqAsync {source} send to broadcast + Write cache: {activity?.Duration.TotalMilliseconds}ms");
|
||||
return fatto;
|
||||
}
|
||||
|
||||
@@ -2307,7 +2307,9 @@ namespace MP.SPEC.Data
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Implementa gestione recupero cache da memoria o da obj esterno + cache memoria + tracking attività
|
||||
/// Implementa gestione FusionCache+ tracking attività
|
||||
/// - recupero cache da memoria o da obj esterno + cache memoria
|
||||
/// - recupero da fetchFunc se mancasse + store in cache L1/L2
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <param name="cacheKey"></param>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<RootNamespace>MP.SPEC</RootNamespace>
|
||||
<Version>8.16.2606.107</Version>
|
||||
<Version>8.16.2606.108</Version>
|
||||
<UserSecretsId>1800a78a-6ff1-40f9-b490-87fb8bfc1394</UserSecretsId>
|
||||
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace MP.SPEC.Pages
|
||||
CurrAction.IsActive = false;
|
||||
CurrAction.Topic = "Chiusura ODL";
|
||||
CurrAction.Message = "Rilevato possibile fine operazioni, Vuoi chiudere la commessa?";
|
||||
MMDataService.ActionSetReq(CurrAction);
|
||||
MMDataService.ActionSetReqAsync(CurrAction);
|
||||
await Task.Delay(1);
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ namespace MP.SPEC.Pages
|
||||
{
|
||||
CurrAction.DtReq = DateTime.Now;
|
||||
CurrAction.IsActive = true;
|
||||
MMDataService.ActionSetReq(CurrAction);
|
||||
MMDataService.ActionSetReqAsync(CurrAction);
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>Modulo MAPOSPEC </i>
|
||||
<h4>Versione: 8.16.2606.107</h4>
|
||||
<h4>Versione: 8.16.2606.108</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
8.16.2606.107
|
||||
8.16.2606.108
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>8.16.2606.107</version>
|
||||
<version>8.16.2606.108</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>
|
||||
|
||||
Reference in New Issue
Block a user