huanghongfeng
4 天以前 1d8897348d578648421b024d0dc5ff3d626e05f9
代码管理/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,6 +108,9 @@
app.ConfigureApplication();//閰嶇疆鏂囦欢
app.UseApplicationSetup();//鍚姩閰嶇疆
app.UseSession();
//if (app.Environment.IsDevelopment())
{
    //todo
@@ -116,6 +120,7 @@
app.UseIpLimitMiddle();
app.UseApiLogMiddleware();
//todo
//app.UseRecordAccessLogsMiddle();