Changeset 6519 for trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/Drivers/EvaluationServiceClient.cs
- Timestamp:
- 07/06/11 20:52:53 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/Drivers/EvaluationServiceClient.cs
r6470 r6519 52 52 [StorableConstructor] 53 53 protected EvaluationServiceClient(bool deserializing) : base(deserializing) { } 54 protected EvaluationServiceClient(EvaluationServiceClient original, Cloner cloner) : base(original, cloner) { 54 protected EvaluationServiceClient(EvaluationServiceClient original, Cloner cloner) 55 : base(original, cloner) { 55 56 RegisterEvents(); 56 } 57 } 57 58 public EvaluationServiceClient() 58 59 : base() { … … 83 84 result = (QualityMessage)Channel.Receive(QualityMessage.CreateBuilder()); 84 85 success = true; 85 } 86 catch (InvalidOperationException) { 86 } catch (InvalidOperationException) { 87 87 throw; 88 } 89 catch { 88 } catch { 90 89 if (tries >= maxTries) 91 90 throw; … … 104 103 Channel.Send(solution); 105 104 success = true; 106 } 107 catch (InvalidOperationException) { 105 } catch (InvalidOperationException) { 108 106 throw; 109 } 110 catch { 107 } catch { 111 108 if (tries >= maxTries) 112 109 throw; … … 123 120 try { 124 121 Channel.Open(); 125 } 126 catch (Exception e) { 122 } catch (Exception e) { 127 123 throw new InvalidOperationException(Name + ": The channel could not be opened.", e); 128 124 } … … 134 130 try { 135 131 message = (QualityMessage)Channel.Receive(QualityMessage.CreateBuilder()); 136 } 137 catch { } 132 } catch { } 138 133 ((Action<QualityMessage>)callback).Invoke(message); 139 134 }
Note: See TracChangeset
for help on using the changeset viewer.