This commit is contained in:
2026-11-08 17:59:31 +03:30
parent 31add513bc
commit b58f1dd736
6 changed files with 63 additions and 21 deletions
+15 -3
View File
@@ -1,8 +1,10 @@
using xLoggingService.DI;
using System;
using System.IO;
using xAiApi.DI;
using System.Linq;
using xAiModels.DI;
using xAiService.DI;
using xTagService.DI;
using System.Net.Http;
using xAiApi.Database;
@@ -29,7 +31,6 @@ using Newtonsoft.Json.Serialization;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using IdentityModel.AspNetCore.OAuth2Introspection;
using xAiService.DI;
namespace xAiApi
{
@@ -61,6 +62,7 @@ namespace xAiApi
public void ConfigureServices(IServiceCollection services)
{
services.AddXLoggingService(Configuration);
//
// Register Validation Provider and all XCommons Module Services ...
services.AddXCommons(Configuration);
@@ -192,7 +194,7 @@ namespace xAiApi
//
// Register File Content Extractor Services ...
services.AddXAiFileContentExtractors();
//
// Register Text Chunker Service ...
services.AddXAiTextChunker();
@@ -214,7 +216,10 @@ namespace xAiApi
services.AddXAiServices();
}
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
public void Configure(
IApplicationBuilder app,
IWebHostEnvironment env
)
{
//
// Configure the HTTP request pipeline.
@@ -231,6 +236,10 @@ namespace xAiApi
app.UseHsts();
}
//
// Setting Environment in App Confiuration ...
app.AddEnvironmentToXAppConfiguration(env.EnvironmentName);
//
// Force Https Redirection ...
app.UseHttpsRedirection();
@@ -315,3 +324,6 @@ namespace xAiApi
}
}
}