Changeset 14029 for branches/crossvalidation-2434/HeuristicLab.Clients.Hive/3.3/HiveServiceLocator.cs
- Timestamp:
- 07/08/16 14:40:02 (8 years ago)
- Location:
- branches/crossvalidation-2434
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/crossvalidation-2434
- Property svn:mergeinfo changed
-
branches/crossvalidation-2434/HeuristicLab.Clients.Hive/3.3/HiveServiceLocator.cs
r12012 r14029 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() {
Note: See TracChangeset
for help on using the changeset viewer.