コード例 #1
0
ファイル: Server.cs プロジェクト: zhouweiaccp/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);
                }
            };
        }
コード例 #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
ファイル: Server.cs プロジェクト: zhouweiaccp/reactor
 public static Server Create(Reactor.Http.Server httpserver)
 {
     return(new Server(httpserver));
 }