- Timestamp:
- 12/15/08 19:13:28 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Communication/WcfService.cs
r949 r993 8 8 using HeuristicLab.Hive.Contracts.BusinessObjects; 9 9 using HeuristicLab.Hive.Client.Common; 10 using HeuristicLab.Hive.Client.Communication.ServerService; 10 11 11 12 namespace HeuristicLab.Hive.Client.Communication { … … 29 30 public event EventHandler ServerChanged; 30 31 31 p rivateClientCommunicatorClient proxy = null;32 public ClientCommunicatorClient proxy = null; 32 33 33 34 private WcfService() { … … 51 52 ConnectionRestored(this, new EventArgs()); 52 53 ConnState = NetworkEnum.WcfConnState.Connected; 53 ConnectedSince = DateTime.Now; 54 ConnectedSince = DateTime.Now; 54 55 } 55 56 catch (Exception ex) { … … 59 60 60 61 public void Connect(String serverIP, int serverPort) { 61 if(this.ServerIP != serverIP || this.ServerPort != ServerPort)62 ServerChanged(this, new EventArgs());62 String oldIp = this.ServerIP; 63 int oldPort = this.ServerPort; 63 64 this.ServerIP = serverIP; 64 65 this.ServerPort = serverPort; 65 66 Connect(); 67 if (oldIp != serverIP || oldPort != ServerPort) 68 ServerChanged(this, new EventArgs()); 66 69 } 67 70 … … 107 110 public void SendJobResultAsync(JobResult result, bool finished) { 108 111 if (ConnState == NetworkEnum.WcfConnState.Connected) 109 proxy.SendJobResult (result, finished);112 proxy.SendJobResultAsync(result, finished); 110 113 } 111 114 private void proxy_SendJobResultCompleted(object sender, SendJobResultCompletedEventArgs e) {
Note: See TracChangeset
for help on using the changeset viewer.