public virtual void Line(ILineExecution execution) { if (!_context.CanContinue()) return; // TODO -- shouldn't throw exceptions, but you know I'll slip up so try/catch here. execution.Execute(_context); }
public virtual void Line(ILineExecution execution) { if (!_context.CanContinue()) { return; } execution.Execute(_context); }
public void Line(ILineExecution execution) { if (!_context.CanContinue()) return; execution.Execute(_context); var progress = new SpecProgress(_plan.Specification.id, CurrentContext.Counts.Clone(), ++_step, _total); _observer.SendProgress(progress); }
public virtual void Line(ILineExecution execution) { if (!_context.CanContinue()) { return; } // TODO -- shouldn't throw exceptions, but you know I'll slip up so try/catch here. execution.Execute(_context); }
public void Line(ILineExecution execution) { if (!_context.CanContinue()) { return; } execution.Execute(_context); var progress = new SpecProgress(_plan.Specification.id, CurrentContext.Counts.Clone(), ++_step, _total); _observer.SendProgress(progress); }
private Task execute(SpecContext context, ILineExecution line) { var running = Task.Factory.StartNew(() => { line.Execute(context); }, Request.Cancellation); return Task.WhenAny(running, _timeout); }
public virtual void Line(ILineExecution execution) { if (!_context.CanContinue()) return; execution.Execute(_context); }