Changeset 924
- Timestamp:
- 12/07/08 16:52:28 (16 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/sources/HeuristicLab.Hive.Client.Communication/WcfService.cs ¶
r923 r924 22 22 } 23 23 24 public enum ConnectionState { connected, disconnected, failed }; 24 public enum ConnectionState { connected, disconnected, failed } 25 public ConnectionState ConnState { get; set; } 26 27 public event EventHandler ConnectionRestored; 25 28 26 29 private ClientCommunicatorClient proxy = null; 27 28 public ConnectionState ConnState { get; set; }29 30 30 private string serverIP; 31 31 private string serverPort; … … 46 46 proxy.SendJobResultCompleted += new EventHandler<SendJobResultCompletedEventArgs>(proxy_SendJobResultCompleted); 47 47 proxy.SendHeartBeatCompleted += new EventHandler<SendHeartBeatCompletedEventArgs>(proxy_SendHeartBeatCompleted); 48 49 if (ConnState == ConnectionState.failed) 50 ConnectionRestored(this, new EventArgs()); 51 ConnState = ConnectionState.connected; 52 48 53 } 49 54 catch (Exception ex) { -
TabularUnified trunk/sources/HeuristicLab.Hive.Client.Core/Core.cs ¶
r923 r924 66 66 wcfService.PullJobCompleted += new EventHandler<PullJobCompletedEventArgs>(wcfService_PullJobCompleted); 67 67 wcfService.SendJobResultCompleted += new EventHandler<SendJobResultCompletedEventArgs>(wcfService_SendJobResultCompleted); 68 wcfService.ConnectionRestored += new EventHandler(wcfService_ConnectionRestored); 68 69 69 70 wcfService.LoginAsync(ConfigurationManager.GetInstance().GetClientInfo()); … … 127 128 #region wcfService Events 128 129 130 void wcfService_ConnectionRestored(object sender, EventArgs e) { 131 //Do some fancy new things here... e.g: check all appdomains if there are still active Jobs that need to be transmitted 132 } 133 129 134 void wcfService_LoginCompleted(object sender, LoginCompletedEventArgs e) { 130 135 if (e.Result.Success) {
Note: See TracChangeset
for help on using the changeset viewer.