Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Tools/HeuristicLab.HiveDrain/HeuristicLab.HiveDrain/TaskSerializer.cs @ 9694

Last change on this file since 9694 was 9694, checked in by ascheibe, 10 years ago

#2017 added a HL application based on apetrei's Hive Drain to the tools branch

File size: 518 bytes
Line 
1using System;
2using HeuristicLab.Common;
3
4
5namespace HiveDrain {
6  static class TaskSerializer {
7    public static void Serialize(SerializerTask serializerTask) {
8      ContentManager.Save(serializerTask.Content, serializerTask.FilePath, true);
9      if (serializerTask.OnSaved != null)
10        serializerTask.OnSaved();
11    }
12
13  }
14
15  class SerializerTask {
16    public String FilePath { get; set; }
17    public IStorableContent Content { get; set; }
18    public Action OnSaved { get; set; }
19  }
20}
Note: See TracBrowser for help on using the repository browser.