tangxu
2025-02-07 03a0d99de9c5fed6bea8bc83b49ce27786bda38c
WebApi/Global.asax.cs
@@ -1,3 +1,4 @@
using IStation.Common;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -23,9 +24,19 @@
            var json = GlobalConfiguration.Configuration.Formatters.JsonFormatter;
            json.Indent = false;
            json.SerializerSettings.DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Local;
            IStation.LogHelper.Initial();
            DataFolderHelper.IsExeExcute = true;//独立运行
            // IStation.LogHelper.Initial();
            IStation.Common.AnaSetting.Initial();
            IStation.Common.ReservoirParasHelper.Initial();
            IStation.Common.RiverWaterLevelDropHelper.Initial();
            //初始化雪花Id
            //SnowflakeIdHelper.InitId(1);
            ScheduleTask.Initial();
        }
    }
}
}