Esempio n. 1
0
        internal void WriteLine(string str, params object[] args)
        {
            try
            {
                string s = DLRConsole.SafeFormat(str, args);
#if USE_HTTPSERVER_DLL
                if (response != null)
                {
                    response.AddToBody(s + Environment.NewLine);
                }
                else
                {
                    Server.LogInfo("no respnse object for " + s);
                }
#endif
            }
            catch (Exception e)
            {
                DLRConsole.DebugWriteLine("" + e);
                Server.LogInfo("WriteLine exception" + e);
            }
        }
Esempio n. 2
0
        static internal void AddToBody(IHttpResponse response, string text)
        {
#if USE_HTTPSERVER_DLL
            response.AddToBody(text + Environment.NewLine);
#endif
        }
        static internal void AddToBody(IHttpResponse response, string text)
        {
#if USE_HTTPSERVER_DLL 
            response.AddToBody(text + Environment.NewLine);            
#endif
        }