Exemple #1
0
        public static bool IsAjaxRequest(this HttpContext context)
        {
            var wrapper = new HttpContextWrapper(context);
            AggregateDictionary dictionary = AggregateDictionary.ForHttpContext(wrapper);

            return(new RequestData(dictionary).IsAjaxRequest());
        }