Free cookie consent management tool by TermsFeed Policy Generator

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

added loggedin state for #474

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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    }
Note: See TracChangeset for help on using the changeset viewer.