Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1036


Ignore:
Timestamp:
12/18/08 17:16:21 (16 years ago)
Author:
kgrading
Message:

bugfix for #401

Location:
trunk/sources
Files:
2 edited

Legend:

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

    r1007 r1036  
    6767      Connect();
    6868      if (oldIp != serverIP || oldPort != ServerPort)
    69         ServerChanged(this, new EventArgs());
     69        if(ServerChanged != null)
     70          ServerChanged(this, new EventArgs());
    7071    }
    7172
  • trunk/sources/HeuristicLab.Hive.Client.Core/Core.cs

    r1035 r1036  
    6767
    6868      wcfService = WcfService.Instance;
     69      wcfService.LoginCompleted += new EventHandler<LoginCompletedEventArgs>(wcfService_LoginCompleted);
     70      wcfService.PullJobCompleted += new EventHandler<PullJobCompletedEventArgs>(wcfService_PullJobCompleted);
     71      wcfService.SendJobResultCompleted += new EventHandler<SendJobResultCompletedEventArgs>(wcfService_SendJobResultCompleted);
     72      wcfService.ConnectionRestored += new EventHandler(wcfService_ConnectionRestored);
     73      wcfService.ServerChanged += new EventHandler(wcfService_ServerChanged);
     74
    6975      ConnectionContainer cc = ConfigManager.Instance.GetServerIPAndPort();
    7076      if (cc.IPAdress != String.Empty && cc.Port != 0) {
    7177        wcfService.Connect(cc.IPAdress, cc.Port);
    7278      }
    73 
    74       wcfService.LoginCompleted += new EventHandler<LoginCompletedEventArgs>(wcfService_LoginCompleted);
    75       wcfService.PullJobCompleted += new EventHandler<PullJobCompletedEventArgs>(wcfService_PullJobCompleted);
    76       wcfService.SendJobResultCompleted += new EventHandler<SendJobResultCompletedEventArgs>(wcfService_SendJobResultCompleted);     
    77       wcfService.ConnectionRestored += new EventHandler(wcfService_ConnectionRestored);
    78       wcfService.ServerChanged += new EventHandler(wcfService_ServerChanged);
    79        
     79   
    8080      Heartbeat beat = new Heartbeat { Interval = 10000 };
    8181      beat.StartHeartbeat();     
Note: See TracChangeset for help on using the changeset viewer.