| | |
| | | using System.Reflection; |
| | | using System.Text; |
| | | using Autofac; |
| | | using Autofac.Core; |
| | | using Autofac.Extensions.DependencyInjection; |
| | |
| | | using Newtonsoft.Json; |
| | | using Newtonsoft.Json.Converters; |
| | | using Newtonsoft.Json.Serialization; |
| | | using Quartz; |
| | | using Serilog; |
| | | using System.Net.Security; |
| | | using System.Reflection; |
| | | using System.Runtime.ConstrainedExecution; |
| | | using System.Text; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_Core.Authorization; |
| | | using WIDESEA_Core.BaseServices; |
| | |
| | | //using WIDESEA_Core.HostedService; |
| | | using WIDESEA_Core.Middlewares; |
| | | using WIDESEA_WMSServer.Filter; |
| | | using Quartz; |
| | | using WIDESEA_WMSServer.Jobs; |
| | | |
| | | var builder = WebApplication.CreateBuilder(args); |
| | |
| | | .WriteTo.File( // é
ç½®è¾åºå°æä»¶ |
| | | path: "logs/log-.txt", // æ¥å¿æä»¶è·¯å¾ï¼ä¼èªå¨å建 logs æä»¶å¤¹ |
| | | rollingInterval: RollingInterval.Day, // æå¤©æ»å¨æ¥å¿æä»¶ |
| | | retainedFileCountLimit: 7, // æå¤ä¿ç7å¤©çæ¥å¿ |
| | | retainedFileCountLimit: 365, // æå¤ä¿ç7å¤©çæ¥å¿ |
| | | outputTemplate: "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}" |
| | | ) |
| | | .CreateLogger(); |
| | |
| | | client.BaseAddress = new Uri(erpurl!); |
| | | client.Timeout = TimeSpan.FromSeconds(30); |
| | | |
| | | }); |
| | | }) ; |
| | | |
| | | builder.Services.AddQuartz(q => |
| | | { |