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