Free cookie consent management tool by TermsFeed Policy Generator

Changeset 16563


Ignore:
Timestamp:
01/28/19 12:35:17 (6 years ago)
Author:
gkronber
Message:

#2520: re-added support for cancellation of save operation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2520_PersistenceReintegration/HeuristicLab.Core/3.3/PersistenceContentManager.cs

    r16559 r16563  
    4141
    4242    protected override void SaveContent(IStorableContent content, string filename, bool compressed, CancellationToken cancellationToken) {
    43       // XmlGenerator.Serialize(content, filename, compressed ? CompressionLevel.Optimal : CompressionLevel.NoCompression, cancellationToken);
    44       // store files with the new persistence format
    4543      var ser = new ProtoBufSerializer();
    46       ser.Serialize(content, filename); // TODO: support cancellation
     44      ser.Serialize(content, filename, cancellationToken);
    4745    }
    4846  }
Note: See TracChangeset for help on using the changeset viewer.