Changeset 1097 for trunk/sources/HeuristicLab.Hive.Client.Communication
- Timestamp:
- 01/08/09 17:00:09 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Communication/WcfService.cs
r1082 r1097 48 48 proxy.SendHeartBeatCompleted += new EventHandler<SendHeartBeatCompletedEventArgs>(proxy_SendHeartBeatCompleted); 49 49 proxy.Open(); 50 if (ConnState == NetworkEnum.WcfConnState.Failed)51 ConnectionRestored(this, new EventArgs());52 50 53 51 ConnState = NetworkEnum.WcfConnState.Connected; 54 ConnectedSince = DateTime.Now; 52 ConnectedSince = DateTime.Now; 53 55 54 if (Connected != null) 56 55 Connected(this, new EventArgs()); 56 57 if (ConnState == NetworkEnum.WcfConnState.Failed) 58 ConnectionRestored(this, new EventArgs()); 57 59 } 58 60 catch (Exception ex) { … … 93 95 NetworkErrorHandling(e.Error.InnerException); 94 96 } 97 98 public void LoginSync(ClientInfo clientInfo) { 99 try { 100 if (ConnState == NetworkEnum.WcfConnState.Connected) { 101 Response res = proxy.Login(clientInfo); 102 Logging.GetInstance().Info(this.ToString(), res.StatusMessage); 103 } 104 } 105 catch (Exception e) { 106 NetworkErrorHandling(e); 107 } 108 } 109 95 110 #endregion 96 111 … … 139 154 } 140 155 141 #endregion 142 156 #endregion 143 157 } 144 158 }
Note: See TracChangeset
for help on using the changeset viewer.