Changeset 1371 for trunk/sources/HeuristicLab.Hive.Client.Communication
- Timestamp:
- 03/19/09 17:30:33 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Communication/WcfService.cs
r1367 r1371 93 93 ConnectionRestored(this, new EventArgs()); 94 94 } 95 catch (Exception ex) { 96 //Todo: Rename to HandleNetworkError 97 NetworkErrorHandling(ex); 95 catch (Exception ex) { 96 HandleNetworkError(ex); 98 97 } 99 98 } … … 126 125 /// </summary> 127 126 /// <param name="e">The Exception</param> 128 private void NetworkErrorHandling(Exception e) {127 private void HandleNetworkError(Exception e) { 129 128 ConnState = NetworkEnum.WcfConnState.Failed; 130 Logging. GetInstance().Error(this.ToString(), "exception: ", e);129 Logging.Instance.Error(this.ToString(), "exception: ", e); 131 130 } 132 131 … … 146 145 LoginCompleted(sender, e); 147 146 else 148 NetworkErrorHandling(e.Error.InnerException);147 HandleNetworkError(e.Error.InnerException); 149 148 } 150 149 … … 154 153 Response res = proxy.Login(clientInfo); 155 154 ConnState = NetworkEnum.WcfConnState.Loggedin; 156 Logging. GetInstance().Info(this.ToString(), res.StatusMessage);155 Logging.Instance.Info(this.ToString(), res.StatusMessage); 157 156 } 158 157 } 159 158 catch (Exception e) { 160 NetworkErrorHandling(e);159 HandleNetworkError(e); 161 160 } 162 161 } … … 177 176 SendJobCompleted(sender, e); 178 177 else 179 NetworkErrorHandling(e.Error);178 HandleNetworkError(e.Error); 180 179 } 181 180 #endregion … … 194 193 ProcessJobResultCompleted(sender, e); 195 194 else 196 NetworkErrorHandling(e.Error);195 HandleNetworkError(e.Error); 197 196 } 198 197 … … 214 213 SendHeartBeatCompleted(sender, e); 215 214 else 216 NetworkErrorHandling(e.Error);215 HandleNetworkError(e.Error); 217 216 } 218 217
Note: See TracChangeset
for help on using the changeset viewer.