Inheritance: IHttpRequestDelegate, IRequestProcessor
示例#1
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);
 }
示例#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);
 }
 public RequestHandlerFactory(RequestProcessor requestProcessor)
 {
     _requestProcessor = requestProcessor;
 }
示例#4
0
 public RequestHandler(string path, RequestProcessor requestProcessor)
 {
     Path = path;
     RequestProcessor = requestProcessor;
     QueryParams = new Dictionary<string, string>();
 }
示例#5
0
 public void WithStatus(HttpStatusCode httpStatusCode)
 {
     ResponseBuilder.WithStatus(httpStatusCode);
     RequestProcessor.Add(this);
 }
 public RequestHandlerFactory(RequestProcessor requestProcessor)
 {
     _requestProcessor = requestProcessor;
 }
示例#7
0
 public RequestHandler(string path, RequestProcessor requestProcessor)
 {
     Path             = path;
     RequestProcessor = requestProcessor;
     QueryParams      = new Dictionary <string, string>();
 }