- Timestamp:
- 05/04/17 19:53:35 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceReintegration/HeuristicLab.Common/3.3/Content/ContentManager.cs
r14927 r14930 57 57 protected abstract IStorableContent LoadContent(string filename); 58 58 59 public static void Save(IStorableContent content, string filename , bool compressed) {59 public static void Save(IStorableContent content, string filename) { 60 60 if (instance == null) throw new InvalidOperationException("ContentManager is not initialized."); 61 instance.SaveContent(content, filename , compressed);61 instance.SaveContent(content, filename); 62 62 content.Filename = filename; 63 63 } 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) { 65 65 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) { 68 68 Exception error = null; 69 69 try { … … 77 77 78 78 } 79 protected abstract void SaveContent(IStorableContent content, string filename , bool compressed);79 protected abstract void SaveContent(IStorableContent content, string filename); 80 80 } 81 81 }
Note: See TracChangeset
for help on using the changeset viewer.