Exemplo n.º 1
0
        public HttpServer(Uri uri)
        {
            _uri              = uri;
            _scheduler        = KayakScheduler.Factory.Create(new SchedulerDelegate());
            _requestProcessor = new RequestProcessor(new EndpointMatchingRule(), new RequestHandlerList());

            _requestHandlerFactory = new RequestHandlerFactory(_requestProcessor);
        }
Exemplo n.º 2
0
 public HttpServer(Uri uri)
 {
     _uri = uri;
     _scheduler = KayakScheduler.Factory.Create(new SchedulerDelegate());
     _requestProcessor = new RequestProcessor(new EndpointMatchingRule(), new RequestHandlerList());
     _requestWasCalled = new RequestWasCalled(_requestProcessor);
     _requestWasNotCalled = new RequestWasNotCalled(_requestProcessor);
     _requestHandlerFactory = new RequestHandlerFactory(_requestProcessor);
 }