Exemplo n.º 1
0
        public bool CheckOut(string workSessionId, out string workSessionState)
        {
            string workSessionStateFromRedis = null;
            var    success = (bool)TryRepeater.Do(() => RedisImplementation.CheckOut(RedisConnection, LockerId, workSessionId, Settings, out workSessionStateFromRedis));

            if (workSessionStateFromRedis != null)
            {
                workSessionState = workSessionStateFromRedis;
            }
            else
            {
                workSessionState = RaiseCustomStateProviding(workSessionId);
            }

            return(success);
        }
Exemplo n.º 2
0
 public void Remove(string workSessionId)
 {
     TryRepeater.Do(() => RedisImplementation.Remove(RedisConnection, LockerId, workSessionId, Settings));
 }
Exemplo n.º 3
0
 public bool HasWorkSessionId(string workSessionId)
 {
     return((bool)TryRepeater.Do(() => RedisImplementation.HasWorkSessionId(RedisConnection, workSessionId, Settings)));
 }
Exemplo n.º 4
0
 public string FindWorkSessionId(string documentId)
 {
     return((string)TryRepeater.Do(() => RedisImplementation.FindWorkSessionId(RedisConnection, documentId.ToLower())));
 }
Exemplo n.º 5
0
 public bool CheckIn(string workSessionId, string documentId, string workSessionState)
 {
     return((bool)TryRepeater.Do(() => RedisImplementation.CheckIn(RedisConnection, LockerId, workSessionId, documentId.ToLower(), workSessionState, Settings)));
 }
Exemplo n.º 6
0
 public bool AddCheckedOut(string workSessionId, string documentId)
 {
     return((bool)TryRepeater.Do(() => RedisImplementation.AddCheckedOut(RedisConnection, LockerId, workSessionId, documentId.ToLower(), Settings)));
 }
Exemplo n.º 7
0
 public string Get(string key)
 {
     return((string)TryRepeater.Do(() => RedisImplementation.Get(RedisConnection, key, Settings)));
 }
Exemplo n.º 8
0
 public void Set(string key, string value)
 {
     TryRepeater.Do(() => RedisImplementation.Set(RedisConnection, key, value, Settings));
 }
Exemplo n.º 9
0
 public void UndoCheckOut(string workSessionId)
 {
     TryRepeater.Do(() => RedisImplementation.UndoCheckOut(RedisConnection, LockerId, workSessionId, Settings));
 }