public void SetOutputBuffering(int requestId, bool doBuffer) { ModMonoWorker worker = GetWorker(requestId) as ModMonoWorker; if (worker == null) { return; } worker.SetOutputBuffering(doBuffer); }
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); } } }