打开分布式锁
parent
4c7ce217da
commit
69c2cd339c
|
@ -57,12 +57,12 @@ namespace IRaCIS.Core.API
|
|||
});
|
||||
|
||||
//注意区分 easy caching 也有 IDistributedLockProvider
|
||||
//services.AddSingleton<IDistributedLockProvider>(sp =>
|
||||
//{
|
||||
// //var connection = ConnectionMultiplexer.Connect(configuration["Redis:Configuration"]!);
|
||||
services.AddSingleton<IDistributedLockProvider>(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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue