private void Current_DeploymentEvent(object sender, TakoDeployLib.Model.ProgressEventArgs e) { if (e.Exception != null) { var ex2 = e.Exception; if (ex2.InnerException != null) { ex2 = ex2.InnerException; } MessageBox.Show(ex2.Message, "TakoDeploy Exception", MessageBoxButton.OK, MessageBoxImage.Error); (Microsoft.HockeyApp.HockeyClient.Current as Microsoft.HockeyApp.HockeyClient).HandleException(ex2); } if (e.Message != null) { DeploymentMessage = e.Message; } OnPropertyChanged(null); }
private void Current_DeploymentEvent(object sender, TakoDeployLib.Model.ProgressEventArgs e) { if (e.Exception != null) { var ex2 = e.Exception; if (ex2.InnerException != null) { ex2 = ex2.InnerException; } MessageBox.Show(ex2.Message, "TakoDeploy Exception", MessageBoxButton.OK, MessageBoxImage.Error); Telemetry.AppInsightTelemetry.TrackException(e.Exception); } if (e.Message != null) { DeploymentMessage = e.Message; } OnPropertyChanged(null); }