protected virtual bool CheckAccess(HttpContextBase httpContext, string action, params string[] resources)
        {
            var task = httpContext.CheckAccessAsync(action, resources);

            if (task.Wait(5000))
            {
                return(task.Result);
            }
            else
            {
                throw new TimeoutException();
            }
        }