public void Run() { _handler = HandlerFactory.Instance.GetHandler(_handlerInfo); if (_handler != null) { _runner = HandlerRunnerFactory.Instance.GetAsync(_handlerInfo.HandlerType, _context.Request.HttpMethod); _runner.Start(_handler, _context).ContinueWith(RunContinuation); } else { throw new InvalidOperationException("Could not create handler handler."); } }