Compare commits

...

6 Commits

Author SHA1 Message Date
Samuele Locatelli 86d28f1901 Merge branch 'release/UpdatePack' 2022-07-13 08:28:57 +02:00
Samuele Locatelli 202c5f6faf Refresh pacchetti nuget + minor fix 2022-07-13 08:28:38 +02:00
Samuele Locatelli e2947d1017 Merge tag 'UpdateSlowTimerElapse' into develop
Aggiornamento slow time elapse (+/- 10%)
2022-07-13 07:57:33 +02:00
Samuele Locatelli 55faefcb9a Merge branch 'release/UpdateSlowTimerElapse' 2022-07-13 07:57:19 +02:00
Samuele Locatelli 1e5f894fd9 MON:
- attesa refresh variabile x client
- esclusione compilazione WASM (NON pronta)
2022-07-13 07:55:12 +02:00
Samuele Locatelli cf8baa054f Merge tag 'MonCleanup' into develop
Update con cleanup codice ed un paio di fix dispose
2022-07-12 19:06:59 +02:00
8 changed files with 121 additions and 121 deletions
+106 -105
View File
@@ -121,19 +121,19 @@ MON:build:
script: script:
- dotnet build $env:APP_NAME/$env:APP_NAME.csproj - dotnet build $env:APP_NAME/$env:APP_NAME.csproj
WAMON:build: # WAMON:build:
stage: build # stage: build
tags: # tags:
- win # - win
variables: # variables:
PROJ_PATH: MP.WASM.Mon\Server # PROJ_PATH: MP.WASM.Mon\Server
APP_NAME: MP.WASM.Mon.Server # APP_NAME: MP.WASM.Mon.Server
SOL_NAME: MP-WAMON # SOL_NAME: MP-WAMON
before_script: # before_script:
- *nuget-fix # - *nuget-fix
- dotnet restore "$env:SOL_NAME.sln" # - dotnet restore "$env:SOL_NAME.sln"
script: # script:
- dotnet build $env:PROJ_PATH/$env:APP_NAME.csproj # - dotnet build $env:PROJ_PATH/$env:APP_NAME.csproj
LAND:test: LAND:test:
stage: test stage: test
@@ -199,22 +199,22 @@ MON:test:
script: script:
- dotnet test $env:APP_NAME/$env:APP_NAME.csproj - dotnet test $env:APP_NAME/$env:APP_NAME.csproj
WAMON:test: # WAMON:test:
stage: test # stage: test
tags: # tags:
- win # - win
variables: # variables:
PROJ_PATH: MP.WASM.Mon\Server # PROJ_PATH: MP.WASM.Mon\Server
APP_NAME: MP.WASM.Mon.Server # APP_NAME: MP.WASM.Mon.Server
SOL_NAME: MP-WAMON # SOL_NAME: MP-WAMON
before_script: # before_script:
- *nuget-fix # - *nuget-fix
- dotnet restore "$env:SOL_NAME.sln" # - dotnet restore "$env:SOL_NAME.sln"
only: # only:
- develop # - develop
needs: ["WAMON:build"] # needs: ["WAMON:build"]
script: # script:
- dotnet test $env:PROJ_PATH/$env:APP_NAME.csproj # - dotnet test $env:PROJ_PATH/$env:APP_NAME.csproj
LAND:IIS01:deploy: LAND:IIS01:deploy:
stage: deploy stage: deploy
@@ -280,22 +280,22 @@ MON:IIS01:deploy:
script: script:
- dotnet publish -p:PublishProfile=IIS01.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true $env:APP_NAME/$env:APP_NAME.csproj - dotnet publish -p:PublishProfile=IIS01.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true $env:APP_NAME/$env:APP_NAME.csproj
WAMON:IIS01:deploy: # WAMON:IIS01:deploy:
stage: deploy # stage: deploy
tags: # tags:
- win # - win
variables: # variables:
PROJ_PATH: MP.WASM.Mon\Server # PROJ_PATH: MP.WASM.Mon\Server
APP_NAME: MP.WASM.Mon.Server # APP_NAME: MP.WASM.Mon.Server
SOL_NAME: MP-WAMON # SOL_NAME: MP-WAMON
before_script: # before_script:
- *nuget-fix # - *nuget-fix
- dotnet restore "$env:SOL_NAME.sln" # - dotnet restore "$env:SOL_NAME.sln"
only: # only:
- develop # - develop
needs: ["WAMON:test"] # needs: ["WAMON:test"]
script: # script:
- dotnet publish -p:PublishProfile=IIS01.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true $env:PROJ_PATH/$env:APP_NAME.csproj # - dotnet publish -p:PublishProfile=IIS01.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true $env:PROJ_PATH/$env:APP_NAME.csproj
LAND:IIS02:deploy: LAND:IIS02:deploy:
stage: deploy stage: deploy
@@ -365,23 +365,23 @@ MON:IIS02:deploy:
- dotnet publish -p:PublishProfile=IIS02.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true $env:APP_NAME/$env:APP_NAME.csproj - dotnet publish -p:PublishProfile=IIS02.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true $env:APP_NAME/$env:APP_NAME.csproj
- dotnet publish -p:PublishProfile=IIS03.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true $env:APP_NAME/$env:APP_NAME.csproj - dotnet publish -p:PublishProfile=IIS03.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true $env:APP_NAME/$env:APP_NAME.csproj
WAMON:IIS02:deploy: # WAMON:IIS02:deploy:
stage: deploy # stage: deploy
tags: # tags:
- win # - win
variables: # variables:
PROJ_PATH: MP.WASM.Mon\Server # PROJ_PATH: MP.WASM.Mon\Server
APP_NAME: MP.WASM.Mon.Server # APP_NAME: MP.WASM.Mon.Server
SOL_NAME: MP-WAMON # SOL_NAME: MP-WAMON
before_script: # before_script:
- *nuget-fix # - *nuget-fix
- dotnet restore "$env:SOL_NAME.sln" # - dotnet restore "$env:SOL_NAME.sln"
only: # only:
- master # - master
needs: ["WAMON:build"] # needs: ["WAMON:build"]
script: # script:
- dotnet publish -p:PublishProfile=IIS02.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true $env:PROJ_PATH/$env:APP_NAME.csproj # - dotnet publish -p:PublishProfile=IIS02.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true $env:PROJ_PATH/$env:APP_NAME.csproj
- dotnet publish -p:PublishProfile=IIS03.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true $env:PROJ_PATH/$env:APP_NAME.csproj # - dotnet publish -p:PublishProfile=IIS03.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true $env:PROJ_PATH/$env:APP_NAME.csproj
LAND:installer: LAND:installer:
stage: installer stage: installer
@@ -467,27 +467,27 @@ MON:installer:
- *hashBuild - *hashBuild
- *nexusUpload - *nexusUpload
WAMON:installer: # WAMON:installer:
stage: installer # stage: installer
tags: # tags:
- win # - win
variables: # variables:
PROJ_PATH: MP.WASM.Mon\Server # PROJ_PATH: MP.WASM.Mon\Server
APP_NAME: MP.WASM.Mon.Server # APP_NAME: MP.WASM.Mon.Server
SOL_NAME: MP-WAMON # SOL_NAME: MP-WAMON
NEXUS_PATH: MP-WAMON # NEXUS_PATH: MP-WAMON
before_script: # before_script:
- *nuget-fix # - *nuget-fix
- dotnet restore "$env:SOL_NAME.sln" # - dotnet restore "$env:SOL_NAME.sln"
only: # only:
- develop # - develop
- master # - master
needs: ["WAMON:build"] # needs: ["WAMON:build"]
script: # script:
- dotnet publish -p:PublishProfile=IISProfile.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release $env:PROJ_PATH/$env:APP_NAME.csproj -o:publish # - dotnet publish -p:PublishProfile=IISProfile.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release $env:PROJ_PATH/$env:APP_NAME.csproj -o:publish
# qui il deploy su nexus... # # qui il deploy su nexus...
- *hashBuild # - *hashBuild
- *nexusUpload # - *nexusUpload
LAND:release: LAND:release:
stage: release stage: release
@@ -583,25 +583,26 @@ MON:release:
script: script:
- dotnet publish -c Release -o ./publish $env:APP_NAME/$env:APP_NAME.csproj - dotnet publish -c Release -o ./publish $env:APP_NAME/$env:APP_NAME.csproj
WAMON:release: # WAMON:release:
stage: release # stage: release
tags: # tags:
- win # - win
variables: # variables:
PROJ_PATH: MP.WASM.Mon\Server # PROJ_PATH: MP.WASM.Mon\Server
APP_NAME: MP.WASM.Mon.Server # APP_NAME: MP.WASM.Mon.Server
SOL_NAME: MP-WAMON # SOL_NAME: MP-WAMON
NEXUS_PATH: MP-WAMON # NEXUS_PATH: MP-WAMON
before_script: # before_script:
- *nuget-fix # - *nuget-fix
- dotnet restore "$env:SOL_NAME.sln" # - dotnet restore "$env:SOL_NAME.sln"
only: # only:
- tags # - tags
except: # except:
- branches # - branches
needs: ["WAMON:build"] # needs: ["WAMON:build"]
artifacts: # artifacts:
paths: # paths:
- publish/ # - publish/
script: # script:
- dotnet publish -c Release -o ./publish $env:PROJ_PATH/$env:APP_NAME.csproj # - dotnet publish -c Release -o ./publish $env:PROJ_PATH/$env:APP_NAME.csproj
-4
View File
@@ -68,10 +68,6 @@ namespace MP.Mon.Components
} }
if (needUpdate) if (needUpdate)
{ {
if (false)
{
Log.Trace($"Elapsed Timer {CurrRecord?.CodMacchina}");
}
await InvokeAsync(() => StateHasChanged()); await InvokeAsync(() => StateHasChanged());
} }
OldRecord = CurrRecord; OldRecord = CurrRecord;
+4 -4
View File
@@ -119,12 +119,12 @@ namespace MP.Mon.Data
{ {
Stopwatch stopWatch = new Stopwatch(); Stopwatch stopWatch = new Stopwatch();
stopWatch.Start(); stopWatch.Start();
List<MappaStatoExpl> result = new List<MappaStatoExpl>(); List<MappaStatoExpl>? result = new List<MappaStatoExpl>();
// cerco in redis... // cerco in redis...
var rawData = await redisDb.StringGetAsync(redisMseKey); RedisValue rawData = await redisDb.StringGetAsync(redisMseKey);
if (!string.IsNullOrEmpty(rawData)) if (rawData != RedisValue.Null || rawData != RedisValue.EmptyString)
{ {
result = JsonConvert.DeserializeObject<List<MappaStatoExpl>>(rawData); result = JsonConvert.DeserializeObject<List<MappaStatoExpl>>($"{rawData}");
stopWatch.Stop(); stopWatch.Stop();
TimeSpan ts = stopWatch.Elapsed; TimeSpan ts = stopWatch.Elapsed;
Log.Debug($"Read from REDIS: {ts.TotalMilliseconds}ms"); Log.Debug($"Read from REDIS: {ts.TotalMilliseconds}ms");
+1 -1
View File
@@ -4,7 +4,7 @@
<TargetFramework>net6.0</TargetFramework> <TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Version>6.15.2207.1219</Version> <Version>6.15.2207.1308</Version>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
+7 -4
View File
@@ -61,7 +61,12 @@ namespace MP.Mon.Pages
protected int slowRefreshMs protected int slowRefreshMs
{ {
get => 1000 * slowRefreshSec; get
{
// tempo variabile tra +/- 10% del target
int answ = rnd.Next(900, 1100) * slowRefreshSec;
return answ;
}
} }
#endregion Protected Properties #endregion Protected Properties
@@ -166,12 +171,10 @@ namespace MP.Mon.Pages
private static NLog.Logger Log = LogManager.GetCurrentClassLogger(); private static NLog.Logger Log = LogManager.GetCurrentClassLogger();
private static System.Timers.Timer slowTimer = new System.Timers.Timer(300000); private static System.Timers.Timer slowTimer = new System.Timers.Timer(300000);
private List<ConfigModel>? CurrConfig = null; private List<ConfigModel>? CurrConfig = null;
private bool doBlink = false; private bool doBlink = false;
private List<MappaStatoExpl>? listMSE = null; private List<MappaStatoExpl>? listMSE = null;
private Random rnd = new Random();
#endregion Private Fields #endregion Private Fields
+1 -1
View File
@@ -1,6 +1,6 @@
<body> <body>
<i>Modulo MON MAPO</i> <i>Modulo MON MAPO</i>
<h4>Versione: 6.15.2207.1219</h4> <h4>Versione: 6.15.2207.1308</h4>
<br /> Note di rilascio: <br /> Note di rilascio:
<ul> <ul>
<li> <li>
+1 -1
View File
@@ -1 +1 @@
6.15.2207.1219 6.15.2207.1308
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<item> <item>
<version>6.15.2207.1219</version> <version>6.15.2207.1308</version>
<url>https://nexus.steamware.net/repository/SWS/MP-MON/stable/LAST/MP.Mon.zip</url> <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> <changelog>https://nexus.steamware.net/repository/SWS/MP-MON/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory> <mandatory>false</mandatory>