Example #1
0
 private Task AddRecord(IAction action, ActionHandlerResult result)
 {
     return(_filesComponent.AddRecord(new ActionRecord
     {
         FileName = Path.GetFileName(action.OutputPath),
         LocalFilePath = result.ResultFilePath
     }));
 }
Example #2
0
        private Task <ActionHandlerResult> HandleAction(IAction action)
        {
            var handler = _factory.Create(action);

            if (handler is null)
            {
                return(Task.FromResult(ActionHandlerResult.Failed()));
            }

            return(handler.Handle(action));
        }