Ejemplo n.º 1
0
        public bool LogicLoop()
        {
            // In order to enable derived classes to divert the standard
            // HTTP request processing in the most flexible way, the processing
            // is done in a continuation-passing way. That means each step
            // is responsible for updating State.NextStep, as appropriate.

            try {
                State = new RequestProcessingState(ReadRequest);
                while (State.NextStep != null)
                {
                    State.NextStep();
                }

                return(State.PersistConnectionBrowserSocket);
            }
            catch (Exception e) {
                AbortRequest();
                throw;
            }
        }
Ejemplo n.º 2
0
        public bool LogicLoop()
        {
            // In order to enable derived classes to divert the standard
            // HTTP request processing in the most flexible way, the processing
            // is done in a continuation-passing way. That means each step
            // is responsible for updating State.NextStep, as appropriate.

            try {
                State = new RequestProcessingState(ReadRequest);
                while (State.NextStep != null) {
                    State.NextStep();
                }

                return State.PersistConnectionBrowserSocket;
            }
            catch (Exception e) {
                AbortRequest();
                throw;
            }
        }