From 8afcbf3d5e60f7039969444cd5a9db8520141a68 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 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/IRaCIS.Core.API/_ServiceExtensions/EFSetup.cs b/IRaCIS.Core.API/_ServiceExtensions/EFSetup.cs index c11f34521..6c679d676 100644 --- a/IRaCIS.Core.API/_ServiceExtensions/EFSetup.cs +++ b/IRaCIS.Core.API/_ServiceExtensions/EFSetup.cs @@ -2,7 +2,7 @@ using IRaCIS.Core.Application.Triggers; using IRaCIS.Core.Infra.EFCore; using Medallion.Threading; -//using Medallion.Threading.SqlServer; +using Medallion.Threading.SqlServer; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; @@ -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); }