Changeset 11246 for branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/Controllers/ExceptionDataController.cs
- Timestamp:
- 07/30/14 16:41:08 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/Controllers/ExceptionDataController.cs
r11222 r11246 36 36 data.ForEach(t => Task.Add(t.TaskID.ToString())); 37 37 data.ForEach(e => Error.Add(e.ErrorMessage)); 38 39 return Json(new KeyValuePair<List<string>, List<string>>(Task, Error), JsonRequestBehavior.AllowGet); 38 39 //Was overflowing default MaxJsonLength 40 //return Json(new KeyValuePair<List<string>, List<string>>(Task, Error), JsonRequestBehavior.AllowGet); 41 return new JsonResult() { Data = new KeyValuePair<List<string>, List<string>>(Task, Error), JsonRequestBehavior = JsonRequestBehavior.AllowGet, MaxJsonLength = Int32.MaxValue }; 40 42 } 41 43 } 42 44 43 public JsonResult SlaveExceptions( string limit,DateTime? start = null, DateTime? end = null, string clientId = null) {45 public JsonResult SlaveExceptions(DateTime? start = null, DateTime? end = null, string clientId = null) { 44 46 using (var db = new HiveDataContext(Settings.Default.HeuristicLab_Hive_LinqConnectionString)) { 45 47 var data = … … 73 75 ); 74 76 } 75 return Json(results, JsonRequestBehavior.AllowGet); 77 //Was overflowing default MaxJsonLength 78 //return Json(results, JsonRequestBehavior.AllowGet); 79 return new JsonResult() { Data = results, JsonRequestBehavior = JsonRequestBehavior.AllowGet, MaxJsonLength = Int32.MaxValue }; 76 80 } 77 81 }
Note: See TracChangeset
for help on using the changeset viewer.