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);
        }