Free cookie consent management tool by TermsFeed Policy Generator

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

#2520 changed optimizer to use new persistence per default

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PersistenceReintegration/HeuristicLab.Common/3.3/Content/ContentManager.cs

    r14927 r14930  
    5757    protected abstract IStorableContent LoadContent(string filename);
    5858
    59     public static void Save(IStorableContent content, string filename, bool compressed) {
     59    public static void Save(IStorableContent content, string filename) {
    6060      if (instance == null) throw new InvalidOperationException("ContentManager is not initialized.");
    61       instance.SaveContent(content, filename, compressed);
     61      instance.SaveContent(content, filename);
    6262      content.Filename = filename;
    6363    }
    64     public static void SaveAsync(IStorableContent content, string filename, bool compressed, Action<IStorableContent, Exception> savingCompletedCallback) {
     64    public static void SaveAsync(IStorableContent content, string filename, Action<IStorableContent, Exception> savingCompletedCallback) {
    6565      if (instance == null) throw new InvalidOperationException("ContentManager is not initialized.");
    66       var action = new Action<IStorableContent, string, bool>(instance.SaveContent);
    67       action.BeginInvoke(content, filename, compressed, delegate (IAsyncResult result) {
     66      var action = new Action<IStorableContent, string>(instance.SaveContent);
     67      action.BeginInvoke(content, filename, delegate (IAsyncResult result) {
    6868        Exception error = null;
    6969        try {
     
    7777
    7878    }
    79     protected abstract void SaveContent(IStorableContent content, string filename, bool compressed);
     79    protected abstract void SaveContent(IStorableContent content, string filename);
    8080  }
    8181}
Note: See TracChangeset for help on using the changeset viewer.