Changeset 13171
- Timestamp:
- 11/16/15 13:38:30 (9 years ago)
- Location:
- stable
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 13060
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Clients.Hive.JobManager/3.3/Views/HiveJobManagerView.cs
r12009 r13171 107 107 } else { 108 108 if (ex is MessageSecurityException) { 109 MessageBox.Show("A Message Security error has occured. This normally means that your user name or password is wrong.", "HeuristicLab Hive Job Manager", MessageBoxButtons.OK, MessageBoxIcon.Error); 109 string message = 110 "A Message Security error has occured. This normally means that your user name or password is wrong. Detailed information: " + Environment.NewLine; 111 message += HiveServiceLocator.Instance.GetEndpointInformation(); 112 ErrorHandling.ShowErrorDialog(this, message, ex); 110 113 } else if (ex is AnonymousUserException) { 111 114 using (HiveInformationDialog dialog = new HiveInformationDialog()) { … … 113 116 } 114 117 } else { 115 ErrorHandling.ShowErrorDialog(this, "Refresh failed.", ex); 118 ErrorHandling.ShowErrorDialog(this, 119 "Refresh failed. Detailed information: " + Environment.NewLine + HiveServiceLocator.Instance.GetEndpointInformation(), ex); 116 120 } 117 121 } -
stable/HeuristicLab.Clients.Hive/3.3/HiveServiceLocator.cs
r12009 r13171 36 36 } 37 37 38 private HiveServiceLocator() { 39 } 38 private HiveServiceLocator() { } 40 39 41 40 private string username; … … 54 53 55 54 public string WorkingEndpoint { get; private set; } 55 56 57 public string GetEndpointInformation() { 58 string message = "Configured endpoints: " + Environment.NewLine; 59 60 var configurations = Settings.Default.EndpointConfigurationPriorities; 61 foreach (var endpointConfigurationName in configurations) { 62 var cl = ClientFactory.CreateClient<HiveServiceClient, IHiveService>(endpointConfigurationName); 63 message += endpointConfigurationName + ": " + cl.Endpoint.Address + Environment.NewLine; 64 } 65 66 if (string.IsNullOrEmpty(WorkingEndpoint)) { 67 message += "No working endpoint found, check you configuration."; 68 } else { 69 message += "Used endpoint: " + WorkingEndpoint; 70 } 71 72 return message; 73 } 56 74 57 75 private HiveServiceClient NewServiceClient() { -
stable/HeuristicLab.Clients.Hive/3.3/IHiveServiceLocator.cs
r12009 r13171 28 28 void CallHiveService(Action<IHiveService> call); 29 29 T CallHiveService<T>(Func<IHiveService, T> call); 30 31 string GetEndpointInformation(); 30 32 } 31 33 }
Note: See TracChangeset
for help on using the changeset viewer.