Changeset 13060 for trunk/sources/HeuristicLab.Clients.Hive
- Timestamp:
- 10/23/15 11:53:17 (9 years ago)
- Location:
- trunk/sources/HeuristicLab.Clients.Hive/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive/3.3/HiveServiceLocator.cs
r12012 r13060 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() { -
trunk/sources/HeuristicLab.Clients.Hive/3.3/IHiveServiceLocator.cs
r12012 r13060 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.