public void PushConditional(IHttpRouteCondition condition, IHttpRequestHandler handler, Func <HttpRouter> routerFactory)
 {
     if (_currentRouter == null)
     {
         _currentRouter = routerFactory();
         _handlers.Add(_currentRouter);
     }
     _currentRouter.When(condition, handler);
 }
 public void PushUnconditional(IHttpRequestHandler handler)
 {
     _currentRouter = null;
     _handlers.Add(handler);
 }