@page "/SysInfo" @using MP.AppAuth @using MP.Land.Data @using Microsoft.Extensions.Configuration @inject AppAuthService DataService @inject MessageService AppMService @inject IConfiguration Configuration
Environment

@Environment

Main DB Conf

@DbNameExample

.net framework

@currHwSwInfo.runtimeImg

Main Assembly

@currHwSwInfo.mainAssembly

Server Stats

@currHwSwInfo.ServerStats

IIS Stats

@currHwSwInfo.IISStats

Elenco librerie
@currHwSwInfo.numLibraries

@currHwSwInfo.librariesVers

@code { // imposto i vari dati da mostrare a video senza indicare come bypassare... protected string Titolo = "MAPO System Info"; protected string Messaggio = "HW & SW details"; protected HwSwInfo currHwSwInfo = HwSwInfo.man(System.Reflection.Assembly.GetExecutingAssembly()); protected string masterLic = ""; protected override async Task OnInitializedAsync() { await ReloadData(); } protected async Task ReloadData() { var akvList = await DataService.AnagKeyValList(); var licRecord = akvList .Where(x => x.NomeVar == "MAPO") .FirstOrDefault(); if (licRecord != null) { masterLic = licRecord.ValString; } } protected string DbNameExample { get { string answ = Configuration["ConnectionStrings:DefaultConnection"]; if (answ.IndexOf(";User ID=") > 0) { answ = answ.Substring(0, answ.IndexOf(";User ID=")); } return answ; } } protected string Environment { get { string answ = Configuration["Environment"]; return answ; } } }