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); } }; }
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); } }; }
public static Server Create(Reactor.Http.Server httpserver) { return(new Server(httpserver)); }