hwh
2024-06-20 e8620c74a1153b448d2af5821d0555206aa18d62
Wms/Wms/Startup.cs
@@ -21,6 +21,7 @@
using Microsoft.Extensions.Options;
using Microsoft.AspNetCore.Http;
using SqlSugar;
using Utility.Job;
namespace Wms
{
@@ -125,6 +126,9 @@
            services.AddScoped<UnitOfWorkAttribute>();
            services.AddSingleton<ISqlSugarClient>(DataContext.Db); // 单例注册
            services.AddTransient<IUnitOfWork, SqlSugarUnitOfWork>(); // 事务与工作单元注册
            services.AddHostedService<HostedService>();
            services.AddSingleton<SchedulerCenter>();
        }
        public void ConfigureContainer(ContainerBuilder builder)
        {