Changeset 944 for trunk/sources/HeuristicLab.Hive.Client.Core/Core.cs
- Timestamp:
- 12/10/08 14:48:49 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Core/Core.cs
r932 r944 62 62 63 63 wcfService = WcfService.Instance; 64 wcfService.Connect("10.20.53.1", 9000); 65 64 ConnectionContainer cc = ConfigManager.Instance.GetServerIPAndPort(); 65 if (cc.IPAdress == String.Empty || cc.Port == 0) { 66 wcfService.Connect("10.20.53.3", 9000); 67 } 66 68 wcfService.LoginCompleted += new EventHandler<LoginCompletedEventArgs>(wcfService_LoginCompleted); 67 69 wcfService.PullJobCompleted += new EventHandler<PullJobCompletedEventArgs>(wcfService_PullJobCompleted); … … 136 138 void wcfService_LoginCompleted(object sender, LoginCompletedEventArgs e) { 137 139 if (e.Result.Success) { 138 Logging.GetInstance().Info(this.ToString(), "Login completed to Hive Server @ " + DateTime.Now); 139 ConfigManager.Instance.Loggedin(); 140 Logging.GetInstance().Info(this.ToString(), "Login completed to Hive Server @ " + DateTime.Now); 140 141 } else 141 142 Logging.GetInstance().Error(this.ToString(), e.Result.StatusMessage);
Note: See TracChangeset
for help on using the changeset viewer.