static internal TelemetryClient GetClient(string instrumentationKey) { var tc = new TelemetryClient(); tc.InstrumentationKey = instrumentationKey; tc.Context.Device.OperatingSystem = OSHelpers.GetVersion(); tc.Context.Cloud.RoleInstance = "undefined"; return(tc); }
/// <summary> /// Initialize Telemetry Client with default values /// </summary> private void InitializeTClient() { var tc = new TelemetryClient(); tc.InstrumentationKey = InstrumentationKey; tc.Context.Device.OperatingSystem = OSHelpers.GetVersion(); tc.Context.Cloud.RoleInstance = "undefined"; this.TClient = tc; }