Changeset 7215 for branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.Slave.Views/3.3/SlaveMainViewBase.cs
- Timestamp:
- 12/20/11 13:54:57 (13 years ago)
- Location:
- branches/HeuristicLab.Hive.Azure
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive.Azure
- Property svn:ignore
-
old new 4 4 *.suo 5 5 *.vsp 6 Doxygen 6 7 Google.ProtocolBuffers-0.9.1.dll 7 8 HeuristicLab 3.3.5.1.ReSharper.user 8 9 HeuristicLab 3.3.6.0.ReSharper.user 9 10 HeuristicLab.4.5.resharper.user 11 HeuristicLab.ExtLibs.6.0.ReSharper.user 10 12 HeuristicLab.resharper.user 11 13 ProtoGen.exe … … 16 18 bin 17 19 protoc.exe 18 HeuristicLab.ExtLibs.6.0.ReSharper.user19 Doxygen
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.Slave.Views/3.3/SlaveMainViewBase.cs
r6983 r7215 62 62 protected override void DeregisterContentEvents() { 63 63 Content.CoreConnectionChanged -= new EventHandler<Common.EventArgs<CoreConnection>>(Content_CoreConnectionChanged); 64 Content.SlaveDisplayStateChanged -= new EventHandler<Common.EventArgs<SlaveDisplayStat>>(Content_SlaveDisplayStateChanged); 64 65 base.DeregisterContentEvents(); 65 66 } … … 68 69 base.RegisterContentEvents(); 69 70 Content.CoreConnectionChanged += new EventHandler<Common.EventArgs<CoreConnection>>(Content_CoreConnectionChanged); 71 Content.SlaveDisplayStateChanged += new EventHandler<Common.EventArgs<SlaveDisplayStat>>(Content_SlaveDisplayStateChanged); 72 } 73 74 void Content_SlaveDisplayStateChanged(object sender, Common.EventArgs<SlaveDisplayStat> e) { 75 if (e.Value == SlaveDisplayStat.NoService) { 76 Task.Factory.StartNew(Connector); 77 } 70 78 } 71 79 72 80 void Content_CoreConnectionChanged(object sender, Common.EventArgs<CoreConnection> e) { 73 81 if (e.Value == CoreConnection.Offline) { 74 Connector();82 Task.Factory.StartNew(Connector); 75 83 } 76 84 } … … 119 127 120 128 if (!connected) { 121 Thread.Sleep( 1000);129 Thread.Sleep(Settings.Default.ServiceReconnectTimeout); 122 130 } 123 131 }
Note: See TracChangeset
for help on using the changeset viewer.