修复Kafka启动消费订阅启动失败的问题

This commit is contained in:
ChenYi 2025-06-24 17:09:29 +08:00
parent e43b5361de
commit 5f1e252307
8 changed files with 21 additions and 1 deletions

View File

@ -1,3 +1,4 @@
using JiShe.ServicePro.ServerOptions;
using JiShe.ServicePro.SwaggerConfigs; using JiShe.ServicePro.SwaggerConfigs;
using System.Reflection; using System.Reflection;
using Volo.Abp.BlobStoring.FileSystem; using Volo.Abp.BlobStoring.FileSystem;
@ -45,6 +46,11 @@ namespace JiShe.IoT
ConfigurationSignalR(context); ConfigurationSignalR(context);
ConfigurationMultiTenancy(); ConfigurationMultiTenancy();
ConfigureBlobStorage(); ConfigureBlobStorage();
Configure<ServerApplicationOptions>(options =>
{
configuration.GetSection(nameof(ServerApplicationOptions)).Bind(options);
});
} }
public override void OnApplicationInitialization(ApplicationInitializationContext context) public override void OnApplicationInitialization(ApplicationInitializationContext context)

View File

@ -1,3 +1,4 @@
using JiShe.ServicePro.CTWingManagement;
using JiShe.ServicePro.DeviceManagement; using JiShe.ServicePro.DeviceManagement;
using JiShe.ServicePro.DynamicMenuManagement; using JiShe.ServicePro.DynamicMenuManagement;
using JiShe.ServicePro.FileManagement; using JiShe.ServicePro.FileManagement;
@ -17,6 +18,7 @@ namespace JiShe.IoT
typeof(FileManagementApplicationContractsModule), typeof(FileManagementApplicationContractsModule),
typeof(IoTDBManagementApplicationContractsModule), typeof(IoTDBManagementApplicationContractsModule),
typeof(DynamicMenuManagementApplicationContractsModule), typeof(DynamicMenuManagementApplicationContractsModule),
typeof(CTWingManagementApplicationContractsModule),
typeof(DeviceManagementApplicationContractsModule) typeof(DeviceManagementApplicationContractsModule)
)] )]
public class IoTApplicationContractsModule : AbpModule public class IoTApplicationContractsModule : AbpModule

View File

@ -1,5 +1,6 @@
using JiShe.IoT.Jobs.ToMysql; using JiShe.IoT.Jobs.ToMysql;
using JiShe.IoT.Jobs.ToRedis; using JiShe.IoT.Jobs.ToRedis;
using JiShe.ServicePro.CTWingManagement;
using JiShe.ServicePro.DeviceManagement; using JiShe.ServicePro.DeviceManagement;
using JiShe.ServicePro.DynamicMenuManagement; using JiShe.ServicePro.DynamicMenuManagement;
using JiShe.ServicePro.FileManagement; using JiShe.ServicePro.FileManagement;
@ -24,6 +25,7 @@ namespace JiShe.IoT
typeof(IoTDBManagementApplicationModule), typeof(IoTDBManagementApplicationModule),
typeof(ServiceProFreeRedisProviderModule), typeof(ServiceProFreeRedisProviderModule),
typeof(ServiceProFreeSqlProviderModule), typeof(ServiceProFreeSqlProviderModule),
typeof(CTWingManagementApplicationModule),
typeof(DeviceManagementApplicationModule) typeof(DeviceManagementApplicationModule)
)] )]
public class IoTApplicationModule : AbpModule public class IoTApplicationModule : AbpModule
@ -41,7 +43,7 @@ namespace JiShe.IoT
public override void PostConfigureServices(ServiceConfigurationContext context) public override void PostConfigureServices(ServiceConfigurationContext context)
{ {
// ¶¨Ê±ÈÎÎñ // ¶¨Ê±ÈÎÎñ
ConfigureBackgroundJob(context); //ConfigureBackgroundJob(context);
} }
private static void ConfigureBackgroundJob(ServiceConfigurationContext context) private static void ConfigureBackgroundJob(ServiceConfigurationContext context)

View File

@ -1,3 +1,4 @@
using JiShe.ServicePro.CTWingManagement;
using JiShe.ServicePro.DeviceManagement; using JiShe.ServicePro.DeviceManagement;
using JiShe.ServicePro.DynamicMenuManagement; using JiShe.ServicePro.DynamicMenuManagement;
using JiShe.ServicePro.FileManagement; using JiShe.ServicePro.FileManagement;
@ -17,6 +18,7 @@ namespace JiShe.IoT
typeof(FileManagementDomainSharedModule), typeof(FileManagementDomainSharedModule),
typeof(IoTDBManagementDomainSharedModule), typeof(IoTDBManagementDomainSharedModule),
typeof(ServiceProFreeSqlProviderModule), typeof(ServiceProFreeSqlProviderModule),
typeof(CTWingManagementDomainSharedModule),
typeof(ServiceProCoreModule), typeof(ServiceProCoreModule),
typeof(DeviceManagementDomainSharedModule) typeof(DeviceManagementDomainSharedModule)
)] )]

View File

@ -1,3 +1,4 @@
using JiShe.ServicePro.CTWingManagement;
using JiShe.ServicePro.DeviceManagement; using JiShe.ServicePro.DeviceManagement;
using JiShe.ServicePro.DynamicMenuManagement; using JiShe.ServicePro.DynamicMenuManagement;
using JiShe.ServicePro.FileManagement; using JiShe.ServicePro.FileManagement;
@ -16,6 +17,7 @@ namespace JiShe.IoT
typeof(FileManagementDomainModule), typeof(FileManagementDomainModule),
typeof(IoTDBManagementDomainModule), typeof(IoTDBManagementDomainModule),
typeof(DynamicMenuManagementDomainModule), typeof(DynamicMenuManagementDomainModule),
typeof(CTWingManagementDomainModule),
typeof(DeviceManagementDomainModule) typeof(DeviceManagementDomainModule)
)] )]
public class IoTDomainModule : AbpModule public class IoTDomainModule : AbpModule

View File

@ -1,3 +1,4 @@
using JiShe.ServicePro.CTWingManagement.EntityFrameworkCore;
using JiShe.ServicePro.DeviceManagement.EntityFrameworkCore; using JiShe.ServicePro.DeviceManagement.EntityFrameworkCore;
using JiShe.ServicePro.DynamicMenuManagement.EntityFrameworkCore; using JiShe.ServicePro.DynamicMenuManagement.EntityFrameworkCore;
using JiShe.ServicePro.FileManagement.EntityFrameworkCore; using JiShe.ServicePro.FileManagement.EntityFrameworkCore;
@ -16,6 +17,7 @@ namespace JiShe.IoT.EntityFrameworkCore
typeof(TemplateManagementEntityFrameworkCoreModule), typeof(TemplateManagementEntityFrameworkCoreModule),
typeof(FileManagementEntityFrameworkCoreModule), typeof(FileManagementEntityFrameworkCoreModule),
typeof(DynamicMenuManagementEntityFrameworkCoreModule), typeof(DynamicMenuManagementEntityFrameworkCoreModule),
typeof(CTWingManagementEntityFrameworkCoreModule),
typeof(DeviceManagementEntityFrameworkCoreModule) typeof(DeviceManagementEntityFrameworkCoreModule)
)] )]
public class IoTEntityFrameworkCoreModule : AbpModule public class IoTEntityFrameworkCoreModule : AbpModule

View File

@ -1,4 +1,5 @@
using JiShe.ServicePro.BasicManagement; using JiShe.ServicePro.BasicManagement;
using JiShe.ServicePro.CTWingManagement;
using JiShe.ServicePro.DataDictionaryManagement; using JiShe.ServicePro.DataDictionaryManagement;
using JiShe.ServicePro.DeviceManagement; using JiShe.ServicePro.DeviceManagement;
using JiShe.ServicePro.DynamicMenuManagement; using JiShe.ServicePro.DynamicMenuManagement;
@ -20,6 +21,7 @@ namespace JiShe.IoT
typeof(FileManagementHttpApiClientModule), typeof(FileManagementHttpApiClientModule),
typeof(IoTDBManagementHttpApiClientModule), typeof(IoTDBManagementHttpApiClientModule),
typeof(DynamicMenuManagementHttpApiClientModule), typeof(DynamicMenuManagementHttpApiClientModule),
typeof(CTWingManagementHttpApiClientModule),
typeof(DeviceManagementHttpApiClientModule) typeof(DeviceManagementHttpApiClientModule)
)] )]
public class IoTHttpApiClientModule : AbpModule public class IoTHttpApiClientModule : AbpModule

View File

@ -1,3 +1,4 @@
using JiShe.ServicePro.CTWingManagement;
using JiShe.ServicePro.DataDictionaryManagement; using JiShe.ServicePro.DataDictionaryManagement;
using JiShe.ServicePro.DeviceManagement; using JiShe.ServicePro.DeviceManagement;
using JiShe.ServicePro.DynamicMenuManagement; using JiShe.ServicePro.DynamicMenuManagement;
@ -18,6 +19,7 @@ namespace JiShe.IoT
typeof(FileManagementHttpApiModule), typeof(FileManagementHttpApiModule),
typeof(IoTDBManagementHttpApiModule), typeof(IoTDBManagementHttpApiModule),
typeof(DynamicMenuManagementHttpApiModule), typeof(DynamicMenuManagementHttpApiModule),
typeof(CTWingManagementHttpApiModule),
typeof(DeviceManagementHttpApiModule) typeof(DeviceManagementHttpApiModule)
)] )]
public class IoTHttpApiModule : AbpModule public class IoTHttpApiModule : AbpModule