コード例 #1
0
        /// <summary>
        ///     Write data to the log
        /// </summary>
        /// <param name="source">object doing the trace</param>
        /// <param name="eventType">severity of the debug event</param>
        /// <param name="data">data being written</param>
        /// <param name="eventId">type of event being traced</param>
        private static void WriteLine(object source, TraceEventType eventType, SignedXmlDebugEvent eventId, string data)
        {
            Debug.Assert(source != null, "source != null");
            Debug.Assert(!String.IsNullOrEmpty(data), "!String.IsNullOrEmpty(data)");
            Debug.Assert(InformationLoggingEnabled, "InformationLoggingEnabled");

            s_traceSource.TraceEvent(eventType,
                                     (int)eventId,
                                     "[{0}, {1}] {2}",
                                     GetObjectId(source),
                                     eventId,
                                     data);
        }
コード例 #2
0
ファイル: SignedXmlDebugLog.cs プロジェクト: mind0n/hive
        /// <summary>
        ///     Write data to the log
        /// </summary>
        /// <param name="source">object doing the trace</param>
        /// <param name="eventType">severity of the debug event</param>
        /// <param name="data">data being written</param>
        /// <param name="eventId">type of event being traced</param>
        private static void WriteLine(object source, TraceEventType eventType, SignedXmlDebugEvent eventId, string data) {
            Debug.Assert(source != null, "source != null");
            Debug.Assert(!String.IsNullOrEmpty(data), "!String.IsNullOrEmpty(data)");
            Debug.Assert(InformationLoggingEnabled, "InformationLoggingEnabled");

            s_traceSource.TraceEvent(eventType,
                                    (int)eventId,
                                    "[{0}, {1}] {2}",
                                    GetObjectId(source),
                                    eventId,
                                    data);
        }
コード例 #3
0
 private static void WriteLine(object source, TraceEventType eventType, SignedXmlDebugEvent eventId, string data)
 {
     s_traceSource.TraceEvent(eventType, (int)eventId, "[{0}, {1}] {2}", new object[] { GetObjectId(source), eventId, data });
 }
 private static void WriteLine(object source, TraceEventType eventType, SignedXmlDebugEvent eventId, string data)
 {
     s_traceSource.TraceEvent(eventType, (int) eventId, "[{0}, {1}] {2}", new object[] { GetObjectId(source), eventId, data });
 }