Ejemplo n.º 1
0
        public void SetStatusCodeLine(int requestId, int code, string status)
        {
            ModMonoWorker worker = GetWorker(requestId) as ModMonoWorker;

            if (worker == null)
            {
                return;
            }
            worker.SetStatusCodeLine(code, status);
        }
Ejemplo n.º 2
0
        public override void SendStatus(int statusCode, string statusDescription)
        {
            UpdateModMonoConfig();
            string line = String.Format("{0} {1}", statusCode, statusDescription);

            if (requestId == -1)
            {
                worker.SetStatusCodeLine(statusCode, line);
            }
            else
            {
                requestBroker.SetStatusCodeLine(requestId, statusCode, line);
            }
        }