예제 #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);
                }
            };
        }
예제 #2
0
파일: Server.cs 프로젝트: jamesaxl/reactor
        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);
                }
            };
        }
예제 #3
0
 public static Server Create(Reactor.Http.Server httpserver)
 {
     return(new Server(httpserver));
 }