From 69c2cd339c9cf1cfd875eb96f5ccc890a8c3ba81 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Mon, 16 Oct 2023 09:20:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=BC=80=E5=88=86=E5=B8=83=E5=BC=8F?= =?UTF-8?q?=E9=94=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.API/_ServiceExtensions/EFSetup.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/IRaCIS.Core.API/_ServiceExtensions/EFSetup.cs b/IRaCIS.Core.API/_ServiceExtensions/EFSetup.cs index c11f34521..705df609c 100644 --- a/IRaCIS.Core.API/_ServiceExtensions/EFSetup.cs +++ b/IRaCIS.Core.API/_ServiceExtensions/EFSetup.cs @@ -57,12 +57,12 @@ namespace IRaCIS.Core.API }); //注意区分 easy caching 也有 IDistributedLockProvider - //services.AddSingleton(sp => - //{ - // //var connection = ConnectionMultiplexer.Connect(configuration["Redis:Configuration"]!); + services.AddSingleton(sp => + { + //var connection = ConnectionMultiplexer.Connect(configuration["Redis:Configuration"]!); - // return new SqlDistributedSynchronizationProvider(configuration.GetSection("ConnectionStrings:RemoteNew").Value); - //}); + return new SqlDistributedSynchronizationProvider(configuration.GetSection("ConnectionStrings:RemoteNew").Value); + }); //services.AddAssemblyTriggers(typeof(SubjectVisitImageDateTrigger).Assembly); }