Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/19/09 17:30:33 (16 years ago)
Author:
kgrading
Message:

renamed the getLogger method (#529)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Client.Communication/WcfService.cs

    r1367 r1371  
    9393          ConnectionRestored(this, new EventArgs());       
    9494      }
    95       catch (Exception ex) {
    96         //Todo: Rename to HandleNetworkError
    97         NetworkErrorHandling(ex);
     95      catch (Exception ex) {     
     96        HandleNetworkError(ex);
    9897      }
    9998    }
     
    126125    /// </summary>
    127126    /// <param name="e">The Exception</param>
    128     private void NetworkErrorHandling(Exception e) {
     127    private void HandleNetworkError(Exception e) {
    129128      ConnState = NetworkEnum.WcfConnState.Failed;
    130       Logging.GetInstance().Error(this.ToString(), "exception: ", e);
     129      Logging.Instance.Error(this.ToString(), "exception: ", e);
    131130    }
    132131
     
    146145        LoginCompleted(sender, e);
    147146      else
    148         NetworkErrorHandling(e.Error.InnerException);
     147        HandleNetworkError(e.Error.InnerException);
    149148    }
    150149
     
    154153          Response res = proxy.Login(clientInfo);
    155154          ConnState = NetworkEnum.WcfConnState.Loggedin;
    156           Logging.GetInstance().Info(this.ToString(), res.StatusMessage);
     155          Logging.Instance.Info(this.ToString(), res.StatusMessage);
    157156        }
    158157      }
    159158      catch (Exception e) {
    160         NetworkErrorHandling(e);
     159        HandleNetworkError(e);
    161160      }
    162161    }
     
    177176        SendJobCompleted(sender, e);
    178177      else
    179         NetworkErrorHandling(e.Error);
     178        HandleNetworkError(e.Error);
    180179    }
    181180    #endregion
     
    194193        ProcessJobResultCompleted(sender, e);
    195194      else
    196         NetworkErrorHandling(e.Error);
     195        HandleNetworkError(e.Error);
    197196    }
    198197
     
    214213        SendHeartBeatCompleted(sender, e);
    215214      else
    216         NetworkErrorHandling(e.Error);
     215        HandleNetworkError(e.Error);
    217216    }
    218217
Note: See TracChangeset for help on using the changeset viewer.