- Timestamp:
- 07/03/15 16:35:17 (9 years ago)
- Location:
- branches/HiveStatistics/sources/HeuristicLab.Services.Hive/3.3
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources/HeuristicLab.Services.Hive/3.3/Convert.cs
r12012 r12584 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Data.Linq;25 24 using System.Linq; 26 25 using DB = HeuristicLab.Services.Hive.DataAccess; -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive/3.3/HeuristicLab.Services.Hive-3.3.csproj
r12441 r12584 119 119 <ItemGroup> 120 120 <Compile Include="Convert.cs" /> 121 <Compile Include="Converter.cs" /> 121 122 <Compile Include="DataTransfer\Command.cs" /> 122 123 <Compile Include="DataTransfer\UserPriority.cs" /> … … 145 146 <Compile Include="HiveStatisticsGenerator.cs" /> 146 147 <Compile Include="Interfaces\IStatisticsGenerator.cs" /> 148 <Compile Include="NewHiveService.cs" /> 147 149 <Compile Include="OptimizedHiveDao.cs" /> 148 150 <Compile Include="HiveDao.cs" /> -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive/3.3/HiveDao.cs
r12516 r12584 72 72 public IEnumerable<DT.LightweightTask> GetLightweightTasksWithoutStateLog(Expression<Func<Task, bool>> predicate) { 73 73 List<DT.LightweightTask> tasks = new List<DT.LightweightTask>(); 74 75 74 using (var db = CreateContext()) { 76 75 var tasksQuery = db.Tasks.Where(predicate).Select(task => new { task.TaskId, task.ExecutionTimeMs, task.ParentTaskId, task.State, task.Command }); -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive/3.3/HiveService.cs
r12468 r12584 94 94 authen.AuthenticateForAnyRole(HiveRoles.Administrator, HiveRoles.Client, HiveRoles.Slave); 95 95 author.AuthorizeForTask(taskId, Permission.Read); 96 97 96 return trans.UseTransaction(() => { 98 97 return DT.Convert.ToDto(optimizedDao.GetTaskById(taskId));
Note: See TracChangeset
for help on using the changeset viewer.