Exemplo n.º 1
0
        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);
                }
            };
        }
Exemplo n.º 2
0
        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);
                }
            };
        }
Exemplo n.º 3
0
 public static Server Create(Reactor.Http.Server httpserver)
 {
     return(new Server(httpserver));
 }