private void Setup() { handler = new DetergentRestHttpHandler(); SimpleRestRequestRouter router = new SimpleRestRequestRouter(); handler.RequestRouter = router; SampleRestService service = new SampleRestService(); service.ConfigureRoutes(router); }
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); }