Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/08/09 17:00:09 (15 years ago)
Author:
kgrading
Message:

various changes (#457)

File:
1 edited

Legend:

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

    r1082 r1097  
    4848        proxy.SendHeartBeatCompleted += new EventHandler<SendHeartBeatCompletedEventArgs>(proxy_SendHeartBeatCompleted);
    4949        proxy.Open();
    50         if (ConnState == NetworkEnum.WcfConnState.Failed)
    51           ConnectionRestored(this, new EventArgs());
    5250
    5351        ConnState = NetworkEnum.WcfConnState.Connected;
    54         ConnectedSince = DateTime.Now;       
     52        ConnectedSince = DateTime.Now;
     53       
    5554        if (Connected != null)
    5655          Connected(this, new EventArgs());                               
     56       
     57        if (ConnState == NetworkEnum.WcfConnState.Failed)
     58          ConnectionRestored(this, new EventArgs());       
    5759      }
    5860      catch (Exception ex) {
     
    9395        NetworkErrorHandling(e.Error.InnerException);
    9496    }
     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
    95110    #endregion
    96111
     
    139154    }
    140155
    141     #endregion
    142 
     156    #endregion 
    143157  }
    144158}
Note: See TracChangeset for help on using the changeset viewer.