diff --git a/src/SJZY.Track.Application/SJZY.Track.Application.csproj b/src/SJZY.Track.Application/SJZY.Track.Application.csproj index 3d1b26db..fc27bea7 100644 --- a/src/SJZY.Track.Application/SJZY.Track.Application.csproj +++ b/src/SJZY.Track.Application/SJZY.Track.Application.csproj @@ -8,7 +8,7 @@ - + @@ -16,8 +16,6 @@ - - diff --git a/src/SJZY.Track.Application/SjzyTrackApplicationModule.cs b/src/SJZY.Track.Application/SjzyTrackApplicationModule.cs index 61219aa6..f946830b 100644 --- a/src/SJZY.Track.Application/SjzyTrackApplicationModule.cs +++ b/src/SJZY.Track.Application/SjzyTrackApplicationModule.cs @@ -22,8 +22,6 @@ using SJZY.Track.Application.Track2InterfaceRelay; using SJZY.UserCenter.Contracts; using SJZY.UserCenter.SharedModel; using SJZY.UserCenter.SharedModel.Pub; -using StackExchange.Redis.Extensions.Core.Configuration; -using StackExchange.Redis.Extensions.System.Text.Json; using Volo.Abp.AspNetCore.Mvc; using Volo.Abp.AutoMapper; using Volo.Abp.FluentValidation; @@ -141,7 +139,6 @@ public class SjzyTrackApplicationModule : AbpModule Console.WriteLine("-- 当前为VS本地环境,用内存存储和内存队列"); } - context.Services.AddRabbitBoot(options => { options.ConnectionString = @@ -201,19 +198,6 @@ public class SjzyTrackApplicationModule : AbpModule $",password={configuration["Redis:Password"]}" + $",defaultDatabase={configuration["Redis:Database"]}" + $",abortConnect=false"; - // 注册Redis服务 - context.Services.AddStackExchangeRedisExtensions(new RedisConfiguration - { - KeyPrefix = configuration["Redis:Prefix"]!, - Database = int.Parse(configuration["Redis:Database"]!), - ConnectionString = connectionString, - AbortOnConnectFail = false, - AllowAdmin = true, - //ConnectTimeout = 5000, - PoolSize = 5, - ConnectRetry = 3, - IsDefault = false, - }); // 注册预警计算服务 //context.Services.AddWarningCalcServices(configuration);