Exemple #1
0
        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);
            }
        }
Exemple #2
0
 public virtual Task <int> AutomateAsync(IAutomationRunner Runner)
 {
     return(Runner.Run(this));
 }