Changeset 1036
- Timestamp:
- 12/18/08 17:16:21 (16 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Communication/WcfService.cs
r1007 r1036 67 67 Connect(); 68 68 if (oldIp != serverIP || oldPort != ServerPort) 69 ServerChanged(this, new EventArgs()); 69 if(ServerChanged != null) 70 ServerChanged(this, new EventArgs()); 70 71 } 71 72 -
trunk/sources/HeuristicLab.Hive.Client.Core/Core.cs
r1035 r1036 67 67 68 68 wcfService = WcfService.Instance; 69 wcfService.LoginCompleted += new EventHandler<LoginCompletedEventArgs>(wcfService_LoginCompleted); 70 wcfService.PullJobCompleted += new EventHandler<PullJobCompletedEventArgs>(wcfService_PullJobCompleted); 71 wcfService.SendJobResultCompleted += new EventHandler<SendJobResultCompletedEventArgs>(wcfService_SendJobResultCompleted); 72 wcfService.ConnectionRestored += new EventHandler(wcfService_ConnectionRestored); 73 wcfService.ServerChanged += new EventHandler(wcfService_ServerChanged); 74 69 75 ConnectionContainer cc = ConfigManager.Instance.GetServerIPAndPort(); 70 76 if (cc.IPAdress != String.Empty && cc.Port != 0) { 71 77 wcfService.Connect(cc.IPAdress, cc.Port); 72 78 } 73 74 wcfService.LoginCompleted += new EventHandler<LoginCompletedEventArgs>(wcfService_LoginCompleted); 75 wcfService.PullJobCompleted += new EventHandler<PullJobCompletedEventArgs>(wcfService_PullJobCompleted); 76 wcfService.SendJobResultCompleted += new EventHandler<SendJobResultCompletedEventArgs>(wcfService_SendJobResultCompleted); 77 wcfService.ConnectionRestored += new EventHandler(wcfService_ConnectionRestored); 78 wcfService.ServerChanged += new EventHandler(wcfService_ServerChanged); 79 79 80 80 Heartbeat beat = new Heartbeat { Interval = 10000 }; 81 81 beat.StartHeartbeat();
Note: See TracChangeset
for help on using the changeset viewer.