("ServerConf:SvgChannel") ?? "";
+ RedServ.Subscribe($"{subChannel}:*", (ch, msg) =>
+ {
+ saveSvg($"{ch}", $"{msg}");
+ });
+
+ return Task.CompletedTask;
+ }
+
+ private void saveSvg(string channel, string newSvg)
+ {
+ // se è la mia immagine
+ if (channel.EndsWith(windowUid) || true)
+ {
+ currSvg = newSvg;
+ }
+ }
+
+
+ protected async Task SendCalc()
+ {
+ await ICService.CallRestPost(apiUrl, $"{calcTag}/{windowUid}", demoJwd);
+ }
+
+
+ protected MarkupString outSvg { get; set; } = (MarkupString)"";
+
+ private string currSvg = "";
+
+ }
+}
\ No newline at end of file
diff --git a/Lux.UI/Components/Pages/Weather.razor b/Lux.UI/Components/Pages/Weather.razor
deleted file mode 100644
index 43a1ecbe..00000000
--- a/Lux.UI/Components/Pages/Weather.razor
+++ /dev/null
@@ -1,64 +0,0 @@
-@page "/weather"
-@attribute [StreamRendering]
-
-Weather
-
-Weather
-
-This component demonstrates showing data.
-
-@if (forecasts == null)
-{
- Loading...
-}
-else
-{
-
-
-
- | Date |
- Temp. (C) |
- Temp. (F) |
- Summary |
-
-
-
- @foreach (var forecast in forecasts)
- {
-
- | @forecast.Date.ToShortDateString() |
- @forecast.TemperatureC |
- @forecast.TemperatureF |
- @forecast.Summary |
-
- }
-
-
-}
-
-@code {
- private WeatherForecast[]? forecasts;
-
- protected override async Task OnInitializedAsync()
- {
- // Simulate asynchronous loading to demonstrate streaming rendering
- await Task.Delay(500);
-
- var startDate = DateOnly.FromDateTime(DateTime.Now);
- var summaries = new[] { "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" };
- forecasts = Enumerable.Range(1, 5).Select(index => new WeatherForecast
- {
- Date = startDate.AddDays(index),
- TemperatureC = Random.Shared.Next(-20, 55),
- Summary = summaries[Random.Shared.Next(summaries.Length)]
- }).ToArray();
- }
-
- private class WeatherForecast
- {
- public DateOnly Date { get; set; }
- public int TemperatureC { get; set; }
- public string? Summary { get; set; }
- public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
- }
-}
diff --git a/Lux.UI/Lux.UI.csproj b/Lux.UI/Lux.UI.csproj
index 612375d1..bfe18a94 100644
--- a/Lux.UI/Lux.UI.csproj
+++ b/Lux.UI/Lux.UI.csproj
@@ -5,7 +5,7 @@
enable
enable
aspnet-Lux.UI-a758c101-a2f4-4e38-977d-1c4887dbbd50
- 0.9.2508.0411
+ 0.9.2508.0412
diff --git a/Lux.UI/Program.cs b/Lux.UI/Program.cs
index 1051d866..bfdf5006 100644
--- a/Lux.UI/Program.cs
+++ b/Lux.UI/Program.cs
@@ -9,6 +9,7 @@ using Microsoft.AspNetCore.Localization;
using Microsoft.EntityFrameworkCore;
using NLog;
using NLog.Web;
+using StackExchange.Redis;
using System.Globalization;
var builder = WebApplication.CreateBuilder(args);
@@ -50,8 +51,19 @@ builder.Services.AddIdentityCore(options => options.SignIn.Requ
builder.Services.AddSingleton, IdentityNoOpEmailSender>();
+
+// costruzione connectionMultiplexer redis...
+string connStr = configuration.GetConnectionString("Redis") ?? "localhost";
+ConnectionMultiplexer redisConn = ConnectionMultiplexer.Connect(connStr);
+// registro connMultiplexer REDIS
+builder.Services.AddSingleton(redisConn);
+// registro wrapper servizi REDIS
+builder.Services.AddSingleton();
+builder.Services.AddSingleton();
+
// Aggiunta servizi specifici
builder.Services.AddSingleton();
+builder.Services.AddSingleton();
var app = builder.Build();
diff --git a/Lux.UI/appsettings.json b/Lux.UI/appsettings.json
index 71d937b0..dc5a90d6 100644
--- a/Lux.UI/appsettings.json
+++ b/Lux.UI/appsettings.json
@@ -58,6 +58,8 @@
"Redis": "redis.ufficio:26379, serviceName=devel, DefaultDatabase=6, keepAlive=180, connectTimeout=15000, syncTimeout=15000, asyncTimeout=15000, abortConnect=false, ssl=false, allowAdmin=true"
},
"ServerConf": {
+ "ImageCalcTag": "svg-preview",
+ "Prog.ApiUrl": "https://iis01.egalware.com/lux/srv/api/window",
"PubChannel": "EgwEngineInput",
"SubChannel": "EgwEngineOutput",
"SvgChannel": "svg:img",
diff --git a/Resources/ChangeLog.html b/Resources/ChangeLog.html
index f1f5a40d..243d0079 100644
--- a/Resources/ChangeLog.html
+++ b/Resources/ChangeLog.html
@@ -1,6 +1,6 @@
LUX - Web Windows MES
- Versione: 0.9.2508.0411
+ Versione: 0.9.2508.0412
Note di rilascio:
-
diff --git a/Resources/VersNum.txt b/Resources/VersNum.txt
index 5a123db6..d7bcfacd 100644
--- a/Resources/VersNum.txt
+++ b/Resources/VersNum.txt
@@ -1 +1 @@
-0.9.2508.0411
+0.9.2508.0412
diff --git a/Resources/manifest.xml b/Resources/manifest.xml
index f87db0a0..3d9f583b 100644
--- a/Resources/manifest.xml
+++ b/Resources/manifest.xml
@@ -1,6 +1,6 @@
-
- 0.9.2508.0411
+ 0.9.2508.0412
http://nexus.steamware.net/repository/SWS/GPW/stable/GPW.UI.zip
http://nexus.steamware.net/repository/SWS/GPW/stable/ChangeLog.html
false