private Task AddRecord(IAction action, ActionHandlerResult result) { return(_filesComponent.AddRecord(new ActionRecord { FileName = Path.GetFileName(action.OutputPath), LocalFilePath = result.ResultFilePath })); }
private Task <ActionHandlerResult> HandleAction(IAction action) { var handler = _factory.Create(action); if (handler is null) { return(Task.FromResult(ActionHandlerResult.Failed())); } return(handler.Handle(action)); }