last ...
This commit is contained in:
+15
-3
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user