- Timestamp:
- 03/05/09 15:59:01 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Communication/WcfService.cs
r1147 r1255 152 152 if (ConnState == NetworkEnum.WcfConnState.Connected) { 153 153 Response res = proxy.Login(clientInfo); 154 ConnState = NetworkEnum.WcfConnState.Loggedin; 154 155 Logging.GetInstance().Info(this.ToString(), res.StatusMessage); 155 156 } … … 168 169 public event System.EventHandler<PullJobCompletedEventArgs> PullJobCompleted; 169 170 public void PullJobAsync(Guid guid) { 170 if (ConnState == NetworkEnum.WcfConnState. Connected)171 if (ConnState == NetworkEnum.WcfConnState.Loggedin) 171 172 proxy.PullJobAsync(guid); 172 173 } … … 185 186 public event System.EventHandler<SendJobResultCompletedEventArgs> SendJobResultCompleted; 186 187 public void SendJobResultAsync(Guid clientId, long jobId, byte[] result, double percentage, Exception exception, bool finished) { 187 if (ConnState == NetworkEnum.WcfConnState. Connected)188 if (ConnState == NetworkEnum.WcfConnState.Loggedin) 188 189 proxy.SendJobResultAsync(clientId, jobId, result, percentage, exception, finished); 189 190 } … … 204 205 public event System.EventHandler<SendHeartBeatCompletedEventArgs> SendHeartBeatCompleted; 205 206 public void SendHeartBeatAsync(HeartBeatData hbd) { 206 if (ConnState == NetworkEnum.WcfConnState. Connected)207 if (ConnState == NetworkEnum.WcfConnState.Loggedin) 207 208 proxy.SendHeartBeatAsync(hbd); 208 209 }
Note: See TracChangeset
for help on using the changeset viewer.