using JiShe.IoT.Jobs.ToMysql; using JiShe.IoT.Jobs.ToRedis; using JiShe.ServicePro.CTWingManagement; using JiShe.ServicePro.DeviceManagement; using JiShe.ServicePro.DynamicMenuManagement; using JiShe.ServicePro.FileManagement; using JiShe.ServicePro.FreeRedisProvider; using JiShe.ServicePro.FreeSqlProvider; using JiShe.ServicePro.IoTDBManagement; using JiShe.ServicePro.TemplateManagement; using Microsoft.Extensions.DependencyInjection; namespace JiShe.IoT { [DependsOn( typeof(IoTDomainModule), typeof(IoTApplicationContractsModule), typeof(BasicManagementApplicationModule), typeof(NotificationManagementApplicationModule), typeof(DataDictionaryManagementApplicationModule), typeof(LanguageManagementApplicationModule), typeof(TemplateManagementApplicationModule), typeof(DynamicMenuManagementApplicationModule), typeof(FileManagementApplicationModule), typeof(IoTDBManagementApplicationModule), typeof(ServiceProFreeRedisProviderModule), typeof(ServiceProFreeSqlProviderModule), typeof(CTWingManagementApplicationModule), typeof(DeviceManagementApplicationModule) )] public class IoTApplicationModule : AbpModule { public override void ConfigureServices(ServiceConfigurationContext context) { Configure(options => { options.AddMaps(); }); } public override void PostConfigureServices(ServiceConfigurationContext context) { // ¶¨Ê±ÈÎÎñ //ConfigureBackgroundJob(context); } private static void ConfigureBackgroundJob(ServiceConfigurationContext context) { context.Services.AddHostedService(); context.Services.AddHostedService(); context.Services.AddHostedService(); context.Services.AddHostedService(); context.Services.AddHostedService(); } } }