public static void Raise(string format, params object[] paramInfo) { try { TraceWarningEvent event1 = new TraceWarningEvent(); event1.Properties.Add("Parameters", ComposeMessageString(format, paramInfo)); event1.Sign(); } catch (Exception exception1) { ReportException(exception1); } }
public static void Raise(string message) { try { TraceWarningEvent event1 = new TraceWarningEvent(); event1.m_Message = message; event1.Sign(); } catch (Exception exception1) { ReportException(exception1); } }