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