12 lines
457 B
C#
12 lines
457 B
C#
namespace Kit.Helpers
|
|
{
|
|
/// <summary>Интерфейс сервиса для синхронизации потоков по ключу</summary>
|
|
public interface IDistributedLockService
|
|
{
|
|
void ExecuteOnLock(string type, string key, Action action);
|
|
TResult ExecuteOnLock<TResult>(string type, string key, Func<TResult> action);
|
|
|
|
int GetLockCount(string type);
|
|
int GetLockCount(string type, string key);
|
|
}
|
|
} |