Esempio n. 1
0
 /// <summary>
 /// 获取根目录
 /// </summary>
 /// <param name="req"></param>
 /// <returns></returns>
 public static string GetBaseUrl(this HttpRequest req)
 {
     return(RequestHelper.GetBaseUrl(req));
 }
Esempio n. 2
0
 /// <summary>
 /// 获取IP
 /// </summary>
 public static string Ip(this HttpContext context)
 {
     return(RequestHelper.GetCurrentIpAddress(context.Request));
 }
Esempio n. 3
0
 /// <summary>
 /// 是否是ajax
 /// </summary>
 /// <param name="req"></param>
 /// <returns></returns>
 public static bool IsAjax(this HttpRequest req)
 {
     return(RequestHelper.IsAjax(req));
 }
Esempio n. 4
0
 public static string Ip(this HttpRequest req)
 {
     return(RequestHelper.GetCurrentIpAddress(req));
 }