Пример #1
0
        public void SetOutputBuffering(int requestId, bool doBuffer)
        {
            ModMonoWorker worker = GetWorker(requestId) as ModMonoWorker;

            if (worker == null)
            {
                return;
            }
            worker.SetOutputBuffering(doBuffer);
        }
Пример #2
0
        void UpdateModMonoConfig()
        {
            // Reconfigure apache to be in synch with current application settings
            HttpContext  ctx      = HttpContext.Current;
            HttpResponse response = ctx != null ? ctx.Response : null;

            if (response != null)
            {
                if (requestId == -1)
                {
                    worker.SetOutputBuffering(response.BufferOutput);
                }
                else
                {
                    requestBroker.SetOutputBuffering(requestId, response.BufferOutput);
                }
            }
        }