Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1255


Ignore:
Timestamp:
03/05/09 15:59:01 (16 years ago)
Author:
kgrading
Message:

added loggedin state for #474

Location:
trunk/sources
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Client.Common/NetworkEnum.cs

    r1132 r1255  
    2727namespace HeuristicLab.Hive.Client.Common {
    2828  public class NetworkEnum {
    29     public enum WcfConnState { Connected, Disconnected, Failed
     29    public enum WcfConnState { Connected, Disconnected, Failed, Loggedin
    3030  }
    3131}
  • trunk/sources/HeuristicLab.Hive.Client.Communication/WcfService.cs

    r1147 r1255  
    152152        if (ConnState == NetworkEnum.WcfConnState.Connected) {
    153153          Response res = proxy.Login(clientInfo);
     154          ConnState = NetworkEnum.WcfConnState.Loggedin;
    154155          Logging.GetInstance().Info(this.ToString(), res.StatusMessage);
    155156        }
     
    168169    public event System.EventHandler<PullJobCompletedEventArgs> PullJobCompleted;
    169170    public void PullJobAsync(Guid guid) {
    170       if (ConnState == NetworkEnum.WcfConnState.Connected)       
     171      if (ConnState == NetworkEnum.WcfConnState.Loggedin)       
    171172        proxy.PullJobAsync(guid);
    172173    }
     
    185186    public event System.EventHandler<SendJobResultCompletedEventArgs> SendJobResultCompleted;
    186187    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)
    188189        proxy.SendJobResultAsync(clientId, jobId, result, percentage, exception, finished);
    189190    }
     
    204205    public event System.EventHandler<SendHeartBeatCompletedEventArgs> SendHeartBeatCompleted;
    205206    public void SendHeartBeatAsync(HeartBeatData hbd) {
    206       if (ConnState == NetworkEnum.WcfConnState.Connected)
     207      if (ConnState == NetworkEnum.WcfConnState.Loggedin)
    207208        proxy.SendHeartBeatAsync(hbd);
    208209    }
  • trunk/sources/HeuristicLab.Hive.Client.Core/Core.cs

    r1219 r1255  
    154154      byte[] sJob = engines[jId].GetFinishedJob();
    155155
    156       if (WcfService.Instance.ConnState == NetworkEnum.WcfConnState.Connected) {
     156      if (WcfService.Instance.ConnState == NetworkEnum.WcfConnState.Loggedin) {
    157157        wcfService.SendJobResultAsync(ConfigManager.Instance.GetClientInfo().ClientId,
    158158          jId,
  • trunk/sources/HeuristicLab.Hive.Client.Core/Heartbeat.cs

    r1119 r1255  
    8383      if (wcfService.ConnState == NetworkEnum.WcfConnState.Failed) {
    8484        wcfService.Connect();
    85       } else if (wcfService.ConnState == NetworkEnum.WcfConnState.Connected) {
     85      } else if (wcfService.ConnState == NetworkEnum.WcfConnState.Loggedin) {
    8686        wcfService.SendHeartBeatAsync(heartBeatData);
    8787      }
Note: See TracChangeset for help on using the changeset viewer.