From 6747bd0717a6fc9f143606f79070b0bf2aaae86f Mon Sep 17 00:00:00 2001 From: Oren Novotny Date: Thu, 28 Mar 2019 15:46:55 -0400 Subject: [PATCH] tweak property names --- .../WindowsServer/DeviceTelemetryInitializer.cs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/AppInsights.WindowsDesktop/WindowsServer/DeviceTelemetryInitializer.cs b/AppInsights.WindowsDesktop/WindowsServer/DeviceTelemetryInitializer.cs index 14e0413..211ec47 100644 --- a/AppInsights.WindowsDesktop/WindowsServer/DeviceTelemetryInitializer.cs +++ b/AppInsights.WindowsDesktop/WindowsServer/DeviceTelemetryInitializer.cs @@ -27,12 +27,11 @@ public void Initialize(ITelemetry telemetry) telemetry.Context.Device.Id = reader.GetDeviceUniqueId(); telemetry.Context.Device.OemName = reader.GetOemName(); telemetry.Context.Device.Model = reader.GetDeviceModel(); -#pragma warning disable CS0618 // Type or member is obsolete - telemetry.Context.Device.NetworkType = reader.GetNetworkType(); - telemetry.Context.Properties["ai.device.locale"] = reader.GetHostSystemLocale(); - telemetry.Context.Properties["ai.device.language"] = reader.GetDisplayLanguage(); - telemetry.Context.Properties["ai.location.timeZone"] = TimeZoneInfo.Local.DisplayName; -#pragma warning restore CS0618 // Type or member is obsolete + + telemetry.Context.GlobalProperties["Network type"] = reader.GetNetworkType(); + telemetry.Context.GlobalProperties["Thread culture"] = reader.GetHostSystemLocale(); + telemetry.Context.GlobalProperties["UI culture"] = reader.GetDisplayLanguage(); + telemetry.Context.GlobalProperties["Time zone"] = TimeZoneInfo.Local.DisplayName; } } }