コード例 #1
0
        internal void Process()
        {
            bool initialized = Initialize();

            if (!initialized)
            {
                Dispose();
                return;
            }

            if (string.IsNullOrEmpty(uriRequest))
            {
                Dispose();
                return;
            }

            if (coreServer.IsBasicServerEnabled())
            {
                BasicControllerProcess();
                return;
            }

            requestProcessor = new RequestProcessor(ref uriRequest, ref clientSocket);

            if (coreServer.GetConfiguration().IsSingleThreaded)
            {
                requestProcessor.DoInBackGround(0);
                requestProcessor.OnPostExecute(0);
                Dispose();
            }
            else
            {
                requestProcessor.OnCompleted += RequestProcessor_OnCompleted;
                WaitPendingRequestsCompletations();
                requestProcessor.Execute(0);
            }
        }
コード例 #2
0
 public bool IsBasicServerEnabled()
 {
     return(realServer.IsBasicServerEnabled());
 }