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);
        }
예제 #3
0
        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);
        }
예제 #4
0
        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);
        }
예제 #5
0
        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);
        }
예제 #6
0
        private Task execute(SpecContext context, ILineExecution line)
        {
            var running = Task.Factory.StartNew(() =>
            {
                line.Execute(context);
            }, Request.Cancellation);

            return Task.WhenAny(running, _timeout);
        }
예제 #7
0
        public virtual void Line(ILineExecution execution)
        {
            if (!_context.CanContinue()) return;

            execution.Execute(_context);
        }