- Timestamp:
- 06/03/16 15:10:08 (8 years ago)
- Location:
- branches/WebJobManager
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Controllers/OkbManagementController.cs
r13871 r13872 4 4 using HeuristicLab.Common; 5 5 using HeuristicLab.Optimization; 6 using HeuristicLab.Persistence.Default.Xml; 6 7 using Microsoft.AspNetCore.Http; 7 8 using Microsoft.AspNetCore.Mvc; … … 76 77 } 77 78 } 78 var deser = PersistenceUtil.Deserialize<IOptimizer>(data );79 var deser = PersistenceUtil.Deserialize<IOptimizer>(data, CompressionType.Zip); 79 80 OKB.Administration.IOKBItem obj = null; 80 81 if (name == "Algorithms" && deser is IAlgorithm) -
branches/WebJobManager/HeuristicLab.Clients.Hive/3.3/Util/PersistenceUtil.cs
r13871 r13872 54 54 using (MemoryStream memStream = new MemoryStream(sjob)) 55 55 { 56 T job = XmlParser.Deserialize<T>(memStream, CompressionType.Zip); 56 T job = XmlParser.Deserialize<T>(memStream); 57 return job; 58 } 59 } 60 public static T Deserialize<T>(byte[] sjob, CompressionType typ) 61 { 62 using (MemoryStream memStream = new MemoryStream(sjob)) 63 { 64 T job = XmlParser.Deserialize<T>(memStream, typ); 57 65 return job; 58 66 }
Note: See TracChangeset
for help on using the changeset viewer.