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); } }
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 }