Merge branch 'release/AddDebugParams_02'
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Version>1.2.2603.1217</Version>
|
||||
<Version>1.2.2603.1218</Version>
|
||||
<UserSecretsId>95c9f021-52d1-4390-a670-5810b7b777b0</UserSecretsId>
|
||||
<EnableNETAnalyzers>true</EnableNETAnalyzers>
|
||||
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
|
||||
|
||||
+26
-4
@@ -8,7 +8,6 @@ using Microsoft.AspNetCore.Diagnostics.HealthChecks;
|
||||
using Microsoft.AspNetCore.HttpOverrides;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.Identity.UI.Services;
|
||||
using Microsoft.AspNetCore.Localization;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
@@ -22,6 +21,7 @@ using OpenTelemetry.Resources;
|
||||
using OpenTelemetry.Trace;
|
||||
using StackExchange.Redis;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
|
||||
// ====================================================================
|
||||
@@ -72,7 +72,8 @@ try
|
||||
.AddService(serviceName: "GWMS", serviceVersion: appVersion))
|
||||
.AddSource("GWMS.Data")
|
||||
.AddSource("GWMS.UI")
|
||||
.AddAspNetCoreInstrumentation(options => {
|
||||
.AddAspNetCoreInstrumentation(options =>
|
||||
{
|
||||
options.Filter = ctx => !ctx.Request.Path.StartsWithSegments("/health");
|
||||
})
|
||||
//.AddHttpClientInstrumentation()
|
||||
@@ -217,6 +218,7 @@ try
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
|
||||
// ====================================================================
|
||||
// 3. CONFIGURAZIONE PIPELINE (ex Configure)
|
||||
// ====================================================================
|
||||
@@ -234,7 +236,11 @@ try
|
||||
app.UseHsts();
|
||||
}
|
||||
|
||||
// Localization IT
|
||||
|
||||
// ====================================================================
|
||||
// Imposta cultura globale
|
||||
// ====================================================================
|
||||
#if false
|
||||
var supportedCultures = new[] { new CultureInfo("it-IT") };
|
||||
app.UseRequestLocalization(new RequestLocalizationOptions
|
||||
{
|
||||
@@ -242,7 +248,23 @@ try
|
||||
SupportedCultures = supportedCultures,
|
||||
FallBackToParentCultures = false
|
||||
});
|
||||
CultureInfo.DefaultThreadCurrentCulture = CultureInfo.CreateSpecificCulture("it-IT");
|
||||
CultureInfo.DefaultThreadCurrentCulture = CultureInfo.CreateSpecificCulture("it-IT");
|
||||
#else
|
||||
var culture = new CultureInfo("en-US");
|
||||
|
||||
var localizationOptions = new RequestLocalizationOptions
|
||||
{
|
||||
DefaultRequestCulture = new Microsoft.AspNetCore.Localization.RequestCulture(culture),
|
||||
SupportedCultures = new List<CultureInfo> { culture },
|
||||
SupportedUICultures = new List<CultureInfo> { culture }
|
||||
};
|
||||
|
||||
// ⚠️ IMPORTANTE: questo deve venire PRIMA di MapBlazorHub
|
||||
app.UseRequestLocalization(localizationOptions);
|
||||
|
||||
CultureInfo.DefaultThreadCurrentCulture = culture;
|
||||
CultureInfo.DefaultThreadCurrentUICulture = culture;
|
||||
#endif
|
||||
|
||||
app.UseForwardedHeaders(new ForwardedHeadersOptions
|
||||
{
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
"ReloadStatusTimer": 20000,
|
||||
"RuntimeOpt": {
|
||||
"CodApp": "GWMS",
|
||||
"RoundFact": 100,
|
||||
"RoundFact": 1000,
|
||||
"NumPar": 4,
|
||||
"BaseUrl": "https://localhost:5003",
|
||||
"BaseAppPath": "/pizzaferri/",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>GWMS - Gas Warehouse Management System</i>
|
||||
<h4>Versione: 1.2.2603.1217</h4>
|
||||
<h4>Versione: 1.2.2603.1218</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
1.2.2603.1217
|
||||
1.2.2603.1218
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>1.2.2603.1217</version>
|
||||
<version>1.2.2603.1218</version>
|
||||
<url>http://nexus.steamware.net/repository/SWS/GWMS/stable/0/GWMS.UI.zip</url>
|
||||
<changelog>http://nexus.steamware.net/repository/SWS/GWMS/stable/0/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
Reference in New Issue
Block a user