public void Can_Handle_Request_Response() {
            using(var app = new TestAsyncHttpApplication()) {
                app.Application_Start(app, EventArgs.Empty);

                Assert.IsNotNull(app);

                for(var i = 0; i < RequestCount; i++) {
                    // app.OnBeginRequest(this, EventArgs.Empty);

                    Thread.Sleep(1);

                    if(IsDebugEnabled)
                        log.Debug("요청 사항 처리 중... request=" + i);

                    // app.OnEndRequest(this, EventArgs.Empty);
                }
            }

            using(var app = new TestAsyncHttpApplication()) {
                Assert.IsNotNull(app);

                for(var i = 0; i < RequestCount; i++) {
                    // app.OnBeginRequest(this, EventArgs.Empty);

                    Thread.Sleep(1);

                    if(IsDebugEnabled)
                        log.Debug("요청 사항 처리 중... request=" + i);

                    // app.OnEndRequest(this, EventArgs.Empty);
                }
            }
        }
Beispiel #2
0
        public void Can_Handle_Request_Response()
        {
            using (var app = new TestAsyncHttpApplication()) {
                app.Application_Start(app, EventArgs.Empty);

                Assert.IsNotNull(app);

                for (var i = 0; i < RequestCount; i++)
                {
                    // app.OnBeginRequest(this, EventArgs.Empty);

                    Thread.Sleep(1);

                    if (IsDebugEnabled)
                    {
                        log.Debug("요청 사항 처리 중... request=" + i);
                    }

                    // app.OnEndRequest(this, EventArgs.Empty);
                }
            }

            using (var app = new TestAsyncHttpApplication()) {
                Assert.IsNotNull(app);

                for (var i = 0; i < RequestCount; i++)
                {
                    // app.OnBeginRequest(this, EventArgs.Empty);

                    Thread.Sleep(1);

                    if (IsDebugEnabled)
                    {
                        log.Debug("요청 사항 처리 중... request=" + i);
                    }

                    // app.OnEndRequest(this, EventArgs.Empty);
                }
            }
        }