public ActionResult Browser()
 {
     BrowserInfo info = new BrowserInfo();
     info.FileRoot = "/UserData/FileManagers/";
     info.RelPath = systemService.GetConfig<string>(Constants.Settings.BaseUrl, GetBaseUrl());
     return View(info);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// 获取客户端信息
        /// </summary>
        /// <returns></returns>
        public static BrowserInfo GetBrowseInfo()
        {
            BrowserInfo info = new BrowserInfo();

            info.IP             = GetIP();
            info.UserAgent      = GetUserAgent();
            info.Browser        = GetBrowser();
            info.BrowserVersion = GetBrowserVersion();
            info.Platform       = GetPlatform();
            return(info);
        }
Ejemplo n.º 3
0
 private static void LogAdditionalUserInfo(int guestID, UtmParamWrapper utm, Uri urlReferrer, Uri url, HttpBrowserCapabilitiesBase httpBrowserCapabilitiesBase, string userAgent)
 {
     TaskRunner.Instance.AddAction(() => {
         BusinessLogic.UserProvider.SaveReferrer(guestID, urlReferrer?.ToString() ?? string.Empty, url?.ToString() ?? string.Empty);
         BusinessLogic.UserProvider.SaveUtm(guestID, utm);
         var browserInfo = new BrowserInfo(httpBrowserCapabilitiesBase, userAgent);
         BusinessLogic.UserProvider.SaveTechInfo(guestID, new GuestTechInfoTransport {
             Version = browserInfo.CurrentVersion(),
             BrowserType = browserInfo.Name,
             Os = browserInfo.Os,
             IsMobile = browserInfo.Mobile,
             UserAgent = browserInfo.UserAgent
         });
     });
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 获取客户端信息
 /// </summary>
 /// <returns></returns>
 public static BrowserInfo GetBrowseInfo()
 {
     BrowserInfo info = new BrowserInfo();
     info.IP = GetIP();
     info.UserAgent = GetUserAgent();
     info.Browser = GetBrowser();
     info.BrowserVersion = GetBrowserVersion();
     info.Platform = GetPlatform();
     return info;
 }