Beispiel #1
0
 public void UpdateDeviceInfo(LogEventCommonData logEventCommonData)
 {
     if (!string.IsNullOrEmpty(logEventCommonData.Platform))
     {
         this.CheckAndAddKeyValue("pl", logEventCommonData.Platform);
     }
     if (!string.IsNullOrEmpty(logEventCommonData.Browser))
     {
         this.CheckAndAddKeyValue("brn", logEventCommonData.Browser);
     }
     if (!string.IsNullOrEmpty(logEventCommonData.BrowserVersion))
     {
         this.CheckAndAddKeyValue("brv", logEventCommonData.BrowserVersion);
     }
     if (!string.IsNullOrEmpty(logEventCommonData.OperatingSystem))
     {
         this.CheckAndAddKeyValue("osn", logEventCommonData.OperatingSystem);
     }
     if (!string.IsNullOrEmpty(logEventCommonData.OperatingSystemVersion))
     {
         this.CheckAndAddKeyValue("osv", logEventCommonData.OperatingSystemVersion);
     }
     if (!string.IsNullOrEmpty(logEventCommonData.DeviceModel))
     {
         this.CheckAndAddKeyValue("dm", logEventCommonData.DeviceModel);
     }
     if (!string.IsNullOrEmpty(logEventCommonData.PalBuild))
     {
         this.CheckAndAddKeyValue("pbld", logEventCommonData.PalBuild);
     }
 }
Beispiel #2
0
 public void UpdateClientBuildVersion(LogEventCommonData logEventCommonData)
 {
     if (!string.IsNullOrEmpty(logEventCommonData.ClientBuild))
     {
         this.CheckAndAddKeyValue("cbld", logEventCommonData.ClientBuild);
     }
 }
Beispiel #3
0
 public void UpdatePerfTraceDatapoint(UserContext userContext)
 {
     if (userContext != null)
     {
         LogEventCommonData logEventCommonData = userContext.LogEventCommonData;
         this.UpdateDeviceInfo(logEventCommonData);
         this.UpdateClientInfo(logEventCommonData);
         this.UpdateUserAgent(userContext.UserAgent);
     }
 }
Beispiel #4
0
        public void UpdatePerformanceNavigationDatapoint(UserContext userContext)
        {
            LogEventCommonData logEventCommonData = userContext.LogEventCommonData;

            this.UpdateDeviceInfo(logEventCommonData);
            this.UpdateFlightInfo(logEventCommonData);
            this.UpdateTenantGuid(userContext.ExchangePrincipal);
            this.UpdateMailboxGuid(userContext.ExchangePrincipal);
            this.UpdateUserAgent(userContext.UserAgent);
        }
Beispiel #5
0
 public void UpdateClientLocaleInfo(LogEventCommonData logEventCommonData)
 {
     if (!string.IsNullOrEmpty(logEventCommonData.Culture))
     {
         this.CheckAndAddKeyValue("clg", logEventCommonData.Culture);
     }
     if (!string.IsNullOrEmpty(logEventCommonData.TimeZone))
     {
         this.CheckAndAddKeyValue("tz", logEventCommonData.TimeZone);
     }
 }
Beispiel #6
0
 public void UpdateFlightInfo(LogEventCommonData logEventCommonData)
 {
     if (!string.IsNullOrEmpty(logEventCommonData.Flights))
     {
         this.CheckAndAddKeyValue("flt", logEventCommonData.Flights);
     }
     if (!string.IsNullOrEmpty(logEventCommonData.Features))
     {
         this.CheckAndAddKeyValue("ftr", logEventCommonData.Features);
     }
 }
Beispiel #7
0
 public void UpdateClientInfo(LogEventCommonData logEventCommonData)
 {
     this.UpdateClientLocaleInfo(logEventCommonData);
     if (!string.IsNullOrEmpty(logEventCommonData.Layout))
     {
         this.CheckAndAddKeyValue("l", logEventCommonData.Layout);
     }
     if (!string.IsNullOrEmpty(logEventCommonData.OfflineEnabled))
     {
         this.CheckAndAddKeyValue("oe", logEventCommonData.OfflineEnabled);
     }
 }
Beispiel #8
0
        public void UpdateActionRecordDataPoint(UserContext userContext)
        {
            LogEventCommonData logEventCommonData = userContext.LogEventCommonData;

            this.UpdateDeviceInfo(logEventCommonData);
            if (!string.IsNullOrEmpty(logEventCommonData.OfflineEnabled))
            {
                this.CheckAndAddKeyValue("oe", logEventCommonData.OfflineEnabled);
            }
            if (!string.IsNullOrEmpty(logEventCommonData.Layout))
            {
                this.CheckAndAddKeyValue("l", logEventCommonData.Layout);
            }
            this.UpdateTenantGuid(userContext.ExchangePrincipal);
            this.UpdateUserAgent(userContext.UserAgent);
        }