Closed ccccccmd closed 6 years ago
That looks right, are you seeing some kind of issue?
i find this project: https://github.com/IvanZheng/IFramework/tree/master/Src/iFramework.Plugins/IFramework.FoundatioLock
by the way, two mechines have two singleton lockproviders,will it lead to problems?
I suppose it could if you are locking on the same key inside of each other but I'm not sure without trying it. If you have a sample that can show off an issue that would be greatly appreciated.
@ccccccmd IFramework.FoundatioLock is only used for single process, because it's in memory lock based on Foundatio. If you want to use for distributed system, you should use IFramework.FoundatioLockRedis which is based on Foundatio.Redis.
I'm going to close this issue, if you have any questions, please let us know.
It's like this ?
somecode to get lockprovider
some code to get lock
user lock