Esempio n. 1
0
        public async void LockSync(ApplicationLock appLock, string lockName, int expireMillisecond, int maxLockMillisecond, Action action)
        {
            var service = getService(appLock.Type);

            service.LockSync(appLock.Configuration, lockName, expireMillisecond, maxLockMillisecond, action);
        }
Esempio n. 2
0
 public async Task Lock(ApplicationLock appLock, string lockName, int expireMillisecond, int maxLockMillisecond, Func <Task> action)
 {
     var service = getService(appLock.Type);
     await service.Lock(appLock.Configuration, lockName, expireMillisecond, maxLockMillisecond, action);
 }