From a8eef823ffe3ba009519eef5ed1c75dd15568506 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Fri, 8 May 2026 08:59:38 +0200 Subject: [PATCH] Fix index page + update profiles --- MP-RIOC/Pages/Index.cshtml | 33 ++----------------- .../Properties/PublishProfiles/IIS03.pubxml | 4 +-- .../Properties/PublishProfiles/IIS04.pubxml | 4 +-- .../PublishProfiles/IISProfile.pubxml | 25 -------------- 4 files changed, 7 insertions(+), 59 deletions(-) delete mode 100644 MP-RIOC/Properties/PublishProfiles/IISProfile.pubxml diff --git a/MP-RIOC/Pages/Index.cshtml b/MP-RIOC/Pages/Index.cshtml index 44c0cf28..6332b46a 100644 --- a/MP-RIOC/Pages/Index.cshtml +++ b/MP-RIOC/Pages/Index.cshtml @@ -1,38 +1,11 @@ -@* @page -@using MP.RIOC.Services -@inject RouteStatsManager StatsManager -@{ - Layout = null; - var metrics = StatsManager.Snapshot(); -} - - - - MP.RIOC - Router Status - - - -
-

MP.RIOC

- MAPO Server Router -

Stato del Servizio: ONLINE

-
-

Questo server smista il traffico tra MP.IO (API Legacy dotNet 4.7.2) e MP.IOC (nuove API .NET 8)

- Versione Router: @System.Reflection.Assembly.GetExecutingAssembly().GetName().Version -
- - *@ - + @page @using MP.RIOC.Services @inject RouteStatsManager StatsManager @{ Layout = null; - var metrics = StatsManager.Snapshot(); + var rawData = StatsManager.Snapshot(); + var metrics = rawData.OrderByDescending(x => x.Value.Count).Take(10); } diff --git a/MP-RIOC/Properties/PublishProfiles/IIS03.pubxml b/MP-RIOC/Properties/PublishProfiles/IIS03.pubxml index d91b9388..e2916a71 100644 --- a/MP-RIOC/Properties/PublishProfiles/IIS03.pubxml +++ b/MP-RIOC/Properties/PublishProfiles/IIS03.pubxml @@ -6,11 +6,11 @@ true Release Any CPU - https://iis01.egalware.com/MP/RIOC/ + https://iis03.egalware.com/MP/RIOC/ false b9188473-f4ae-4f9f-be2d-70edaace0db9 false - https://iis01.egalware.com:8172/MsDeploy.axd + https://iis03.egalware.com:8172/MsDeploy.axd Default Web Site/MP/RIOC false diff --git a/MP-RIOC/Properties/PublishProfiles/IIS04.pubxml b/MP-RIOC/Properties/PublishProfiles/IIS04.pubxml index d91b9388..0322e090 100644 --- a/MP-RIOC/Properties/PublishProfiles/IIS04.pubxml +++ b/MP-RIOC/Properties/PublishProfiles/IIS04.pubxml @@ -6,11 +6,11 @@ true Release Any CPU - https://iis01.egalware.com/MP/RIOC/ + https://iis04.egalware.com/MP/RIOC/ false b9188473-f4ae-4f9f-be2d-70edaace0db9 false - https://iis01.egalware.com:8172/MsDeploy.axd + https://iis04.egalware.com:8172/MsDeploy.axd Default Web Site/MP/RIOC false diff --git a/MP-RIOC/Properties/PublishProfiles/IISProfile.pubxml b/MP-RIOC/Properties/PublishProfiles/IISProfile.pubxml deleted file mode 100644 index d91b9388..00000000 --- a/MP-RIOC/Properties/PublishProfiles/IISProfile.pubxml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - MSDeploy - true - Release - Any CPU - https://iis01.egalware.com/MP/RIOC/ - false - b9188473-f4ae-4f9f-be2d-70edaace0db9 - false - https://iis01.egalware.com:8172/MsDeploy.axd - Default Web Site/MP/RIOC - - false - WMSVC - true - true - jenkins - <_SavePWD>true - <_TargetId>IISWebDeploy - net8.0 - - \ No newline at end of file