Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/22/10 00:44:01 (14 years ago)
Author:
swagner
Message:

Sorted usings and removed unused usings in entire solution (#1094)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/Drivers/EvaluationServiceClient.cs

    r3895 r4068  
    2121
    2222using System;
    23 using System.Collections.Generic;
    24 using System.Linq;
    25 using System.Text;
    2623using HeuristicLab.Core;
     24using HeuristicLab.Data;
     25using HeuristicLab.Parameters;
    2726using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    28 using HeuristicLab.Parameters;
    29 using HeuristicLab.Data;
    3027
    3128namespace HeuristicLab.Problems.ExternalEvaluation {
     
    5451
    5552    #region IEvaluationServiceClient Members
    56    
     53
    5754    public QualityMessage Evaluate(SolutionMessage solution) {
    5855      int tries = 0, maxTries = RetryParameter.Value.Value;
     
    6663          result = (QualityMessage)Channel.Receive(QualityMessage.CreateBuilder());
    6764          success = true;
    68         } catch (InvalidOperationException) {
     65        }
     66        catch (InvalidOperationException) {
    6967          throw;
    70         } catch {
     68        }
     69        catch {
    7170          if (tries >= maxTries)
    7271            throw;
     
    8584          Channel.Send(solution);
    8685          success = true;
    87         } catch (InvalidOperationException) {
     86        }
     87        catch (InvalidOperationException) {
    8888          throw;
    89         } catch {
     89        }
     90        catch {
    9091          if (tries >= maxTries)
    9192            throw;
     
    102103        try {
    103104          Channel.Open();
    104         } catch (Exception e) {
     105        }
     106        catch (Exception e) {
    105107          throw new InvalidOperationException(Name + ": The channel could not be opened.", e);
    106108        }
     
    112114      try {
    113115        message = (QualityMessage)Channel.Receive(QualityMessage.CreateBuilder());
    114       } catch { }
     116      }
     117      catch { }
    115118      ((Action<QualityMessage>)callback).Invoke(message);
    116119    }
Note: See TracChangeset for help on using the changeset viewer.