| | |
| | | builder.RegisterModule<AutofacPropertityModuleReg>();// |
| | | }).ConfigureAppConfiguration((hostingContext, config) => |
| | | { |
| | | |
| | | hostingContext.Configuration.ConfigureApplication(); |
| | | config.Sources.Clear(); |
| | | config.AddJsonFile("appsettings.json", optional: true, reloadOnChange: false); |
| | | }); ; |
| | | builder.ConfigureApplication(); |
| | | |
| | | App.ExpDateTime = DateTime.Parse("2025-03-31 00:00:00"); |
| | | //App.ExpDateTime = DateTime.Parse("2025-05-31 00:00:00"); |
| | | |
| | | // 2ãé
ç½®æå¡ |
| | | builder.Services.AddSingleton(new AppSettings(builder.Configuration));//注å |
| | |
| | | builder.Services.AddHostedService<QuartzJobDataTableHostedService>(); |
| | | |
| | | //builder.Services.AddWebSocketSetup(); |
| | | builder.Services.AddWebSocketSetup(); |
| | | |
| | | builder.Services.AddHostedService<WarehouseHostedService>(); |
| | | |
| | | builder.Services.AddAutoMapperSetup(); |
| | | |
| | |
| | | |
| | | builder.Services.AddHttpContextSetup(); |
| | | |
| | | |
| | | builder.Services.AddHostedService<QuartzJobHostedService>(); |
| | | |
| | | builder.Services.AddMvc(options => |