huanghongfeng
2 天以前 b7f53ba61fbc1844d7b92ff852762b140d46ab54
代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Program.cs
@@ -21,6 +21,7 @@
using Autofac.Core;
using WIDESEAWCS_QuartzJob.QuartzExtensions;
using Microsoft.AspNetCore.Builder;
using System.Configuration;
var builder = WebApplication.CreateBuilder(args);
@@ -61,7 +62,7 @@
builder.Services.AddHttpContextSetup();
builder.Services.AddHostedService<QuartzJobHostedService>();
builder.Services.AddHostedService<QuartzJobHostedService>();//浠诲姟璋冨害 鍚姩鏈嶅姟
builder.Services.AddMvc(options =>
{
@@ -107,7 +108,10 @@
app.ConfigureApplication();//閰嶇疆鏂囦欢
app.UseApplicationSetup();//鍚姩閰嶇疆
app.UseSession();
if (app.Environment.IsDevelopment())
//if (app.Environment.IsDevelopment())
{
    //todo
    //app.UseSwaggerAuthorized();
@@ -116,6 +120,7 @@
app.UseIpLimitMiddle();
app.UseApiLogMiddleware();
//todo
//app.UseRecordAccessLogsMiddle();