public async Task <TaskScheduleHistoryResult> SaveAsync(string SessionKey, TaskScheduleHistory history)
 {
     return(await authorizationProcess.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await taskScheduleHistoryProcessor.SaveAsync(history, token);
         return new TaskScheduleHistoryResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             TaskScheduleHistoryList = new List <TaskScheduleHistory> {
                 result
             },
         };
     }, logger));
 }
Exemplo n.º 2
0
 public async Task <TaskScheduleHistory> Save(TaskScheduleHistory history, CancellationToken token)
 => await taskScheduleHistoryProcessor.SaveAsync(history, token);