- Timestamp:
- 03/05/09 15:59:01 (16 years ago)
- Location:
- trunk/sources
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Common/NetworkEnum.cs
r1132 r1255 27 27 namespace HeuristicLab.Hive.Client.Common { 28 28 public class NetworkEnum { 29 public enum WcfConnState { Connected, Disconnected, Failed }29 public enum WcfConnState { Connected, Disconnected, Failed, Loggedin } 30 30 } 31 31 } -
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 } -
trunk/sources/HeuristicLab.Hive.Client.Core/Core.cs
r1219 r1255 154 154 byte[] sJob = engines[jId].GetFinishedJob(); 155 155 156 if (WcfService.Instance.ConnState == NetworkEnum.WcfConnState. Connected) {156 if (WcfService.Instance.ConnState == NetworkEnum.WcfConnState.Loggedin) { 157 157 wcfService.SendJobResultAsync(ConfigManager.Instance.GetClientInfo().ClientId, 158 158 jId, -
trunk/sources/HeuristicLab.Hive.Client.Core/Heartbeat.cs
r1119 r1255 83 83 if (wcfService.ConnState == NetworkEnum.WcfConnState.Failed) { 84 84 wcfService.Connect(); 85 } else if (wcfService.ConnState == NetworkEnum.WcfConnState. Connected) {85 } else if (wcfService.ConnState == NetworkEnum.WcfConnState.Loggedin) { 86 86 wcfService.SendHeartBeatAsync(heartBeatData); 87 87 }
Note: See TracChangeset
for help on using the changeset viewer.