示例#1
0
        private void Setup()
        {
            handler = new DetergentRestHttpHandler();
            SimpleRestRequestRouter router = new SimpleRestRequestRouter();
            handler.RequestRouter = router;

            SampleRestService service = new SampleRestService();
            service.ConfigureRoutes(router);
        }
示例#2
0
        private void Setup()
        {
            httpHandler = new DetergentRestHttpHandler();
            listener = new DetergentHttpListener(
                "http://localhost:9999",
                "/service",
                httpHandler);

            SimpleRestRequestRouter router = new SimpleRestRequestRouter();
            httpHandler.RequestRouter = router;

            SampleRestService service = new SampleRestService();
            service.ConfigureRoutes(router);
        }