예제 #1
0
        /// <summary>
        ///    Processes the request with the responder.
        /// </summary>
        /// <param name="state">
        ///    A <see cref="object" /> containing the state as passed to
        ///    the method. Always <see langword="null" />.
        /// </param>
        /// <remarks>
        ///    If multiplexing is enabled, this method will be called
        ///    from the thread queue. Otherwise it will be called in the
        ///    same thread as the connection.
        /// </remarks>
        private void Worker(object state)
        {
            int appStatus = responder.Process();

            if (appStatus != int.MinValue)
            {
                CompleteRequest(appStatus,
                                ProtocolStatus.RequestComplete);
            }
        }