This commit is contained in:
2026-11-08 17:59:09 +03:30
parent 8bbd05d2c0
commit c711cae78f
3 changed files with 52 additions and 15 deletions
+13 -2
View File
@@ -6,6 +6,7 @@ using Newtonsoft.Json;
using xApi.Extensions;
using xHttpService.DI;
using System.Reflection;
using xLoggingService.DI;
using xCommons.Extensions;
using xDataService.Models;
using xIdentityService.DI;
@@ -41,6 +42,7 @@ namespace xApi
public void ConfigureServices(IServiceCollection services)
{
services.AddXLoggingService(Configuration);
//
// Register Validation Provider and all XCommons Module Services ...
services.AddXCommons(Configuration);
@@ -119,7 +121,10 @@ namespace xApi
);
}
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
public void Configure(
IApplicationBuilder app,
IWebHostEnvironment env
)
{
//
if (env.IsDevelopment())
@@ -127,6 +132,10 @@ namespace xApi
app.UseDeveloperExceptionPage();
}
//
// Setting Environment in App Confiuration ...
app.AddEnvironmentToXAppConfiguration(env.EnvironmentName);
//
// Use Swagger Middleware ...
app.UseXSwagger();
@@ -169,4 +178,6 @@ namespace xApi
);
}
}
}
}