- Timestamp:
- 05/25/16 16:48:19 (9 years ago)
- Location:
- branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Controllers
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Controllers/HomeController.cs
r13854 r13860 1 using HeuristicLab.Clients.Access; 2 using HeuristicLab.Clients.Common; 3 using HeuristicLab.Clients.Common.Properties; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #endregion 21 4 22 using HeuristicLab.Clients.Hive.WebJobManager.Services; 5 using Microsoft.AspNet .Mvc;23 using Microsoft.AspNetCore.Mvc; 6 24 using System.ServiceModel.Security; 7 using Microsoft.AspNet.Http;8 25 using System; 9 26 using HeuristicLab.Clients.Hive.WebJobManager.ViewModels; 27 using Microsoft.AspNetCore.Http; 10 28 11 29 namespace HeuristicLab.Clients.Hive.WebJobManager.Controllers -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Controllers/JobController.cs
r13854 r13860 1 using Microsoft.AspNet.Mvc; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #endregion 21 22 using Microsoft.AspNetCore.Mvc; 2 23 using HeuristicLab.Clients.Hive.WebJobManager.Services; 3 24 using System; … … 6 27 using System.Threading.Tasks; 7 28 using HeuristicLab.Clients.Hive.WebJobManager.ViewModels; 8 using System.ServiceModel.Security;9 using Microsoft.AspNet.Http; 29 using Microsoft.AspNetCore.Http; 30 10 31 using System.IO; 11 32 using Microsoft.Net.Http.Headers; 12 using Microsoft.AspNet .Hosting;33 using Microsoft.AspNetCore.Hosting; 13 34 using HeuristicLab.Common; 14 using HeuristicLab.Core;15 35 using HeuristicLab.Optimization; 16 36 using System.Threading; 37 17 38 18 39 namespace HeuristicLab.Clients.Hive.WebJobManager.Controllers … … 90 111 ViewBag.SessionId = HttpContext.Session.GetString("UserId"); 91 112 ViewBag.Title = "Jobs"; 92 return View( vm);113 return View("Index", vm); 93 114 } 94 115 else … … 338 359 var serve = weblog.getFileOpener(userId); 339 360 serve.NewModel(); 340 serve.env = _environment;361 serve.env = (Microsoft.AspNetCore.Hosting.IHostingEnvironment)_environment; 341 362 serve.vm.directories = upper.DisplayDatePaths; 342 363 var ioptimizer = ContentManager.Load(upper.FullFilesPaths[filedex]); … … 465 486 { 466 487 var fileName = ContentDispositionHeaderValue.Parse(file.ContentDisposition).FileName.Trim('"'); 467 await file. SaveAsAsync(Path.Combine(uploads, fileName));488 await file.CopyToAsync(new FileStream(Path.Combine(uploads, fileName),FileMode.OpenOrCreate)); 468 489 // var ioptimizer = ContentManager.Load(Path.Combine(uploads, fileName)); 469 490 //OptimizerHiveTask task = new OptimizerHiveTask((IOptimizer)ioptimizer); -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Controllers/ResourceController.cs
r13854 r13860 1 using HeuristicLab.Clients.Access; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #endregion 21 2 22 using HeuristicLab.Clients.Access.Administration; 3 23 using HeuristicLab.Clients.Hive.WebJobManager.Models; 4 24 using HeuristicLab.Clients.Hive.WebJobManager.Services; 5 using Microsoft.AspNet .Hosting;6 using Microsoft.AspNet .Http;7 using Microsoft.AspNet .Mvc;25 using Microsoft.AspNetCore.Hosting; 26 using Microsoft.AspNetCore.Http; 27 using Microsoft.AspNetCore.Mvc; 8 28 using System; 9 using System.Collections.Generic;10 29 using System.Linq; 11 using System.ServiceModel.Security;12 30 using System.Threading; 13 using System.Threading.Tasks;14 31 15 32 namespace HeuristicLab.Clients.Hive.WebJobManager.Controllers -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Controllers/UserController.cs
r13854 r13860 1 using HeuristicLab.Clients.Access.Administration; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #endregion 21 22 using HeuristicLab.Clients.Access.Administration; 2 23 using HeuristicLab.Clients.Hive.WebJobManager.Services; 3 24 using HeuristicLab.Clients.Hive.WebJobManager.ViewModels.User; 4 using Microsoft.AspNet .Hosting;5 using Microsoft.AspNet .Http;6 using Microsoft.AspNet .Mvc;25 using Microsoft.AspNetCore.Hosting; 26 using Microsoft.AspNetCore.Http; 27 using Microsoft.AspNetCore.Mvc; 7 28 using System; 8 29 using System.Collections.Generic;
Note: See TracChangeset
for help on using the changeset viewer.