public void ProcessServerMessageTransmission() { try { using (_telemetryClient) { while (_telemetryClient.IsServerConnected == false) { _telemetryClient.ConnectToServer(DiagnosticChannelConnectionString); } _telemetryClient.SendMessage(TelemetryClient.DiagnosticMessage); DiagnosticInfo = _telemetryClient.ReceiveResponse(); } } catch (ArgumentNullException e) { Console.WriteLine(e.Message); throw; } catch (Exception) { Console.WriteLine("Unexpected internal error occured"); throw; } }