Skip to content

Commit

Permalink
tweak property names
Browse files Browse the repository at this point in the history
  • Loading branch information
Oren Novotny committed Mar 28, 2019
1 parent 2473756 commit 6747bd0
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit 6747bd0

Please sign in to comment.