- Program.cs: Arrow → معمولی، +Telemetry

- Startup.cs: isDevelopmentEnvironment var، +logging middleware
- xIds.csproj: +xLoggingService reference
This commit is contained in:
2026-11-09 12:53:24 +03:30
parent b311b1e391
commit 8d392b3d84
4 changed files with 39 additions and 16 deletions
+9 -5
View File
@@ -90,13 +90,10 @@ namespace xIds
)
{
//
if (env.IsDevelopment())
var isDevelopmentEnvironment = env.IsDevelopment();
if (isDevelopmentEnvironment)
{
//
app.UseDeveloperExceptionPage();
//
// app.UseXRequestLogger();
}
//
@@ -122,6 +119,13 @@ namespace xIds
//
app.UseRouting();
//
// Using Request Logging ...
if (!isDevelopmentEnvironment)
{
app.UseXRequestLogger();
}
//
app.UseAuthentication();
app.UseAuthorization();