From 8dcff695a46dfc47c98a4cd30f96acf051ce22dc Mon Sep 17 00:00:00 2001 From: hardstylewyl <827778732@qq.com> Date: Tue, 13 May 2025 10:42:58 +0800 Subject: [PATCH] =?UTF-8?q?option:=E5=89=94=E9=99=A4=E6=8E=89=E4=B8=8D?= =?UTF-8?q?=E5=BF=85=E8=A6=81=E7=9A=84Redis=E5=AE=A2=E6=88=B7=E7=AB=AF?= =?UTF-8?q?=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SJZY.Track.Application.csproj | 4 +--- .../SjzyTrackApplicationModule.cs | 16 ---------------- 2 files changed, 1 insertion(+), 19 deletions(-) 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);