private void StartAsyncTask(Object workItemState)
        {
            var path =
                AuthorizeManager.AuthorizeDebugJavascriptPath(_context.Request.RawUrl);

            if (path != null)
            {
                _context.Response.WriteFile(path.Replace("~", "").Replace("//", "/"));
            }
            else
            {
                throw new KhodkarInvalidException(LanguageManager.ToAsErrorMessage(ExceptionKey.NotFound, _context.Request.RawUrl));
            }


            _completed = true;
            _callback(this);
        }
 public virtual async Task <string> GetJavascriptOfDebugPath(string path)
 {
     return(await FileSystemManager.ReadAsync(
                AuthorizeManager.AuthorizeDebugJavascriptPath(path).Replace("//", "/")));
 }