예제 #1
0
        public bool CheckOut(string workSessionId, out string workSessionState)
        {
            string workSessionStateFromSql = null;
            var    success = (bool)TryRepeater.Do(() => SqlImplementation.CheckOut(ConnectionString, workSessionId, LockerId, out workSessionStateFromSql));

            workSessionState = workSessionStateFromSql;
            return(success);
        }
예제 #2
0
 public void UndoCheckOut(string workSessionId)
 {
     TryRepeater.Do(() => SqlImplementation.UndoCheckOut(ConnectionString, workSessionId, LockerId));
 }
예제 #3
0
 public void Remove(string workSessionId)
 {
     TryRepeater.Do(() => SqlImplementation.Remove(ConnectionString, workSessionId, LockerId));
 }
예제 #4
0
 public bool HasWorkSessionId(string workSessionId)
 {
     return((bool)TryRepeater.Do(() => SqlImplementation.HasWorkSessionId(ConnectionString, workSessionId)));
 }
예제 #5
0
 public string FindWorkSessionId(string documentId)
 {
     return((string)TryRepeater.Do(() => SqlImplementation.FindWorkSessionId(ConnectionString, documentId.ToLower())));
 }
예제 #6
0
 public bool CheckIn(string workSessionId, string documentId, string workSessionState)
 {
     return((bool)TryRepeater.Do(() => SqlImplementation.CheckIn(ConnectionString, workSessionId, documentId.ToLower(), workSessionState, LockerId)));
 }