Update nuget x gestione risposte complete di environmetn

This commit is contained in:
Samuele Locatelli
2025-08-06 16:13:13 +02:00
parent 5c21ba9dcc
commit f7a9c72821
8 changed files with 18 additions and 23 deletions
@@ -21,6 +21,6 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="EgwMultiEngineManager.Data" Version="2.7.8.2" />
<PackageReference Include="EgwMultiEngineManager.Data" Version="2.7.8.3" />
</ItemGroup>
</Project>
@@ -143,10 +143,10 @@ namespace EgwCoreLib.Lux.Data.Services
/// </summary>
/// <param name="imgId"></param>
/// <param name="bomContent"></param>
public async Task<bool> SaveBomAsync(string imgId, string bomContent)
public async Task<bool> SaveBomAsync(string imgId, EgwMultiEngineManager.Data.Constants.ENVIRONMENTS env, string bomContent)
{
// salvo img in cache
string currKey = $"{redisBaseKey}:BOM:{imgId.Replace("/", ":")}";
string currKey = $"{redisBaseKey}:{env}:BOM:{imgId.Replace("/", ":")}";
var done = await _redisService.SetAsync(currKey, bomContent);
// invio notifica nuova svg generata sul canale... viene inviato solo svg con ID nel canale
string notifyChannel = $"{bomChannel}:{imgId}";
@@ -160,10 +160,10 @@ namespace EgwCoreLib.Lux.Data.Services
/// <param name="imgId"></param>
/// <param name="svgContent"></param>
/// <returns></returns>
public bool SaveSvg(string imgId, string svgContent)
public bool SaveSvg(string imgId, EgwMultiEngineManager.Data.Constants.ENVIRONMENTS env, string svgContent)
{
// salvo img in cache
string currKey = $"{redisBaseKey}:Images:{imgId.Replace("/", ":")}";
string currKey = $"{redisBaseKey}:{env}:Images:{imgId.Replace("/", ":")}";
var done = _redisService.Set(currKey, svgContent);
// invio notifica nuova imgsvg sul canale... viene "reimbustata"
string notifyChannel = $"svg-gen:{imgId}";
@@ -175,11 +175,12 @@ namespace EgwCoreLib.Lux.Data.Services
/// Salva e invia su channel img redis SVG per il doc richiesto
/// </summary>
/// <param name="imgId"></param>
/// <param name="env"></param>
/// <param name="svgContent"></param>
public async Task<bool> SaveSvgAsync(string imgId, string svgContent)
public async Task<bool> SaveSvgAsync(string imgId, EgwMultiEngineManager.Data.Constants.ENVIRONMENTS env, string svgContent)
{
// salvo img in cache
string currKey = $"{redisBaseKey}:Images:{imgId.Replace("/", ":")}";
string currKey = $"{redisBaseKey}:{env}:Images:{imgId.Replace("/", ":")}";
var done = await _redisService.SetAsync(currKey, svgContent);
// invio notifica nuova svg generata sul canale... viene inviato solo svg con ID nel canale
string notifyChannel = $"{svgChannel}:{imgId}";
+2 -8
View File
@@ -4,7 +4,7 @@
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<Version>0.9.2508.0615</Version>
<Version>0.9.2508.0616</Version>
</PropertyGroup>
<ItemGroup>
@@ -58,7 +58,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="EgwMultiEngineManager.Data" Version="2.7.8.2" />
<PackageReference Include="EgwMultiEngineManager.Data" Version="2.7.8.3" />
<PackageReference Include="NLog" Version="6.0.1" />
<PackageReference Include="NLog.Web.AspNetCore" Version="6.0.1" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.6.2" />
@@ -69,12 +69,6 @@
<ProjectReference Include="..\EgwCoreLib.Lux.Data\EgwCoreLib.Lux.Data.csproj" />
</ItemGroup>
<ItemGroup>
<Reference Include="EgwMultiEngineManager">
<HintPath>ExtLib\EgwMultiEngineManager.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<None Update="logs\.placeholder">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+3 -3
View File
@@ -42,14 +42,14 @@ namespace Lux.API.Services
// salvo SVG
string newSvg = retData.Args["Svg"];
string UID = retData.Args["UID"];
await _cacheService.SaveSvgAsync(UID, newSvg);
await _cacheService.SaveSvgAsync(UID, retData.Environment, newSvg);
}
else if(retData.Args.ContainsKey("BOM"))
if(retData.Args.ContainsKey("BOM"))
{
// salvo BOM ricevuta
string newBom = retData.Args["BOM"];
string UID = retData.Args["UID"];
await _cacheService.SaveBomAsync(UID, newBom);
await _cacheService.SaveBomAsync(UID, retData.Environment, newBom);
}
}
}
+2 -2
View File
@@ -5,7 +5,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UserSecretsId>aspnet-Lux.UI-a758c101-a2f4-4e38-977d-1c4887dbbd50</UserSecretsId>
<Version>0.9.2508.0615</Version>
<Version>0.9.2508.0616</Version>
</PropertyGroup>
<ItemGroup>
@@ -19,7 +19,7 @@
<ItemGroup>
<PackageReference Include="EgwCoreLib.Razor" Version="1.5.2506.3019" />
<PackageReference Include="EgwCoreLib.Utils" Version="1.5.2506.3019" />
<PackageReference Include="EgwMultiEngineManager.Data" Version="2.7.8.2" />
<PackageReference Include="EgwMultiEngineManager.Data" Version="2.7.8.3" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="8.0.17" />
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="8.0.17" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="8.0.17" />
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>LUX - Web Windows MES</i>
<h4>Versione: 0.9.2508.0615</h4>
<h4>Versione: 0.9.2508.0616</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
0.9.2508.0615
0.9.2508.0616
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>0.9.2508.0615</version>
<version>0.9.2508.0616</version>
<url>http://nexus.steamware.net/repository/SWS/GPW/stable/GPW.UI.zip</url>
<changelog>http://nexus.steamware.net/repository/SWS/GPW/stable/ChangeLog.html</changelog>
<mandatory>false</mandatory>