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.Common/3.3/Content/ContentManager.cs

    r14185 r14927  
    4343      if (instance == null) throw new InvalidOperationException("ContentManager is not initialized.");
    4444      var func = new Func<string, IStorableContent>(instance.LoadContent);
    45       func.BeginInvoke(filename, delegate(IAsyncResult result) {
     45      func.BeginInvoke(filename, delegate (IAsyncResult result) {
    4646        Exception error = null;
    4747        IStorableContent content = null;
     
    4949          content = func.EndInvoke(result);
    5050          content.Filename = filename;
    51         }
    52         catch (Exception ex) {
     51        } catch (Exception ex) {
    5352          error = ex;
    5453        }
     
    6665      if (instance == null) throw new InvalidOperationException("ContentManager is not initialized.");
    6766      var action = new Action<IStorableContent, string, bool>(instance.SaveContent);
    68       action.BeginInvoke(content, filename, compressed, delegate(IAsyncResult result) {
     67      action.BeginInvoke(content, filename, compressed, delegate (IAsyncResult result) {
    6968        Exception error = null;
    7069        try {
    7170          action.EndInvoke(result);
    7271          content.Filename = filename;
    73         }
    74         catch (Exception ex) {
     72        } catch (Exception ex) {
    7573          error = ex;
    7674        }
Note: See TracChangeset for help on using the changeset viewer.