Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/04/17 17:19:35 (7 years ago)
Author:
gkronber
Message:

#2520: changed all usages of StorableClass to use StorableType with an auto-generated GUID (did not add StorableType to other type definitions yet)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PersistenceReintegration/HeuristicLab.Clients.OKB/3.3/Administration/AdministrationClient.cs

    r14185 r14927  
    7979        problemClasses.AddRange(CallAdministrationService<List<ProblemClass>>(s => s.GetProblemClasses()).OrderBy(x => x.Name));
    8080        problems.AddRange(CallAdministrationService<List<Problem>>(s => s.GetProblems()).OrderBy(x => x.Name));
    81       }
    82       finally {
     81      } finally {
    8382        OnRefreshed();
    8483      }
    8584    }
    8685    public void RefreshAsync(Action<Exception> exceptionCallback) {
    87       var call = new Func<Exception>(delegate() {
     86      var call = new Func<Exception>(delegate () {
    8887        try {
    8988          Refresh();
    90         }
    91         catch (Exception ex) {
     89        } catch (Exception ex) {
    9290          return ex;
    9391        }
    9492        return null;
    9593      });
    96       call.BeginInvoke(delegate(IAsyncResult result) {
     94      call.BeginInvoke(delegate (IAsyncResult result) {
    9795        Exception ex = call.EndInvoke(result);
    9896        if (ex != null) exceptionCallback(ex);
     
    193191      try {
    194192        call(client);
    195       }
    196       finally {
     193      } finally {
    197194        try {
    198195          client.Close();
    199         }
    200         catch (Exception) {
     196        } catch (Exception) {
    201197          client.Abort();
    202198        }
     
    207203      try {
    208204        return call(client);
    209       }
    210       finally {
     205      } finally {
    211206        try {
    212207          client.Close();
    213         }
    214         catch (Exception) {
     208        } catch (Exception) {
    215209          client.Abort();
    216210        }
Note: See TracChangeset for help on using the changeset viewer.