Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/12/16 17:15:11 (8 years ago)
Author:
abeham
Message:

#2560:

  • Added clients methods for the new service methods
  • Added partial class for the dto value classes of the run creation client so that one doesn't have to specify the DataType field
  • Added missing license header to UnknownCharacteristicType
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.OKB/3.3/RunCreation/RunCreationClient.cs

    r12012 r13503  
    6161        algorithms.AddRange(CallRunCreationService<List<Algorithm>>(s => s.GetAlgorithms("HeuristicLab 3.3")));
    6262        problems.AddRange(CallRunCreationService<List<Problem>>(s => s.GetProblems("HeuristicLab 3.3")));
    63       }
    64       finally {
     63      } finally {
    6564        OnRefreshed();
    6665      }
     
    7069        try {
    7170          Refresh();
    72         }
    73         catch (Exception ex) {
     71        } catch (Exception ex) {
    7472          return ex;
    7573        }
     
    10199    #endregion
    102100
     101    #region Characteristic Methods
     102    public static void SetCharacteristicValue(long problemId, string characteristicName, Value v) {
     103      CallRunCreationService(s => s.SetCharacteristicValue(problemId, characteristicName, v));
     104    }
     105    #endregion
     106
    103107    #region Events
    104108    public event EventHandler Refreshing;
     
    119123      try {
    120124        call(client);
    121       }
    122       finally {
     125      } finally {
    123126        try {
    124127          client.Close();
    125         }
    126         catch (Exception) {
     128        } catch (Exception) {
    127129          client.Abort();
    128130        }
     
    133135      try {
    134136        return call(client);
    135       }
    136       finally {
     137      } finally {
    137138        try {
    138139          client.Close();
    139         }
    140         catch (Exception) {
     140        } catch (Exception) {
    141141          client.Abort();
    142142        }
Note: See TracChangeset for help on using the changeset viewer.