コード例 #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()
        {
            handler = new DetergentRestHttpHandler();
            SimpleRestRequestRouter router = new SimpleRestRequestRouter();

            handler.RequestRouter = router;

            SampleRestService service = new SampleRestService();

            service.ConfigureRoutes(router);
        }
コード例 #3
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);
        }
コード例 #4
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);
        }