public Server(Reactor.Http.Server httpserver) { this.router = new Router(); this.httpserver = httpserver; this.servercb = this.httpserver.OnContext; this.httpserver.OnContext = this.OnHttpContext; this.httpserver.OnError += (error) => { if (this.OnError != null) { this.OnError(error); } }; }