コード例 #1
0
        public HttpServerFluentTests ListeningOnRoute(string urlPrefix)
        {
            var routeHandler = new EchoRouteHandler();

            _routeHandlers[urlPrefix] = routeHandler;
            _httpServer.RegisterRoute(urlPrefix, routeHandler);
            return(this);
        }
コード例 #2
0
        public HttpServerFluentTests ListeningOnDefaultRoute()
        {
            var routeHandler = new EchoRouteHandler();

            _routeHandlers[string.Empty] = routeHandler;
            _httpServer.RegisterRoute(routeHandler);
            return(this);
        }