public async Task <ApiResult> Handle(RunAutomations request, CancellationToken cancellationToken) { // using (var scope = _unitOfWorkFactory.Create()) { var result = await _automationRunner.Run(request, cancellationToken); // scope.Commit(); return(result); } }
public virtual Task <int> AutomateAsync(IAutomationRunner Runner) { return(Runner.Run(this)); }