WIDESEAWCS_Server/WIDESEAWCS_Server/Program.cs
@@ -22,9 +22,12 @@ using WIDESEAWCS_QuartzJob.QuartzExtensions; using Microsoft.AspNetCore.Builder; using WIDESEAWCS_Server.Filter; using WIDESEAWCS_QuartzJob; var builder = WebApplication.CreateBuilder(args); App.ExpDateTime = DateTime.Parse("2025-01-01 00:00:00"); builder.Host.UseServiceProviderFactory(new AutofacServiceProviderFactory()).ConfigureContainer<ContainerBuilder>(builder => { builder.RegisterModule(new AutofacModuleRegister());//带有接口层的服务注入