Changeset 1081 for trunk/sources/HeuristicLab.Hive.Client.Communication
- Timestamp:
- 01/07/09 15:31:58 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Communication/WcfService.cs
r1036 r1081 28 28 29 29 public event EventHandler ConnectionRestored; 30 public event EventHandler ServerChanged; 30 public event EventHandler ServerChanged; 31 public event EventHandler Connected; 31 32 32 33 public ClientCommunicatorClient proxy = null; … … 37 38 public void Connect() { 38 39 try { 39 proxy = null; 40 if (proxy == null) { 41 proxy = new ClientCommunicatorClient( 42 new NetTcpBinding(), 43 new EndpointAddress("net.tcp://" + ServerIP + ":" + ServerPort + "/HiveServer/ClientCommunicator") 44 ); 45 } 40 proxy = new ClientCommunicatorClient( 41 new NetTcpBinding(), 42 new EndpointAddress("net.tcp://" + ServerIP + ":" + ServerPort + "/HiveServer/ClientCommunicator") 43 ); 46 44 47 45 proxy.LoginCompleted += new EventHandler<LoginCompletedEventArgs>(proxy_LoginCompleted); … … 49 47 proxy.SendJobResultCompleted += new EventHandler<SendJobResultCompletedEventArgs>(proxy_SendJobResultCompleted); 50 48 proxy.SendHeartBeatCompleted += new EventHandler<SendHeartBeatCompletedEventArgs>(proxy_SendHeartBeatCompleted); 51 49 proxy.Open(); 50 if (Connected != null) 51 Connected(this, new EventArgs()); 52 52 if (ConnState == NetworkEnum.WcfConnState.Failed) 53 53 ConnectionRestored(this, new EventArgs());
Note: See TracChangeset
for help on using the changeset viewer.