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.Access.Administration/3.3/AccessAdministrationClient.cs

    r14185 r14927  
    159159
    160160    public void ExecuteActionAsync(Action action, Action<Exception> exceptionCallback) {
    161       var call = new Func<Exception>(delegate() {
     161      var call = new Func<Exception>(delegate () {
    162162        try {
    163163          OnRefreshing();
    164164          action();
    165         }
    166         catch (Exception ex) {
     165        } catch (Exception ex) {
    167166          return ex;
    168         }
    169         finally {
     167        } finally {
    170168          OnRefreshed();
    171169        }
    172170        return null;
    173171      });
    174       call.BeginInvoke(delegate(IAsyncResult result) {
     172      call.BeginInvoke(delegate (IAsyncResult result) {
    175173        Exception ex = call.EndInvoke(result);
    176174        if (ex != null) exceptionCallback(ex);
     
    196194      try {
    197195        call(client);
    198       }
    199       finally {
     196      } finally {
    200197        try {
    201198          client.Close();
    202         }
    203         catch (Exception) {
     199        } catch (Exception) {
    204200          client.Abort();
    205201        }
     
    210206      try {
    211207        return call(client);
    212       }
    213       finally {
     208      } finally {
    214209        try {
    215210          client.Close();
    216         }
    217         catch (Exception) {
     211        } catch (Exception) {
    218212          client.Abort();
    219213        }
Note: See TracChangeset for help on using the changeset viewer.