Esempio n. 1
0
            private int GetParentCode(bool isTraceEnabled)
            {
                StorageGlobals.TraceContextStack.Pop();
                int traceContextCode = StorageGlobals.GetTraceContextCode(isTraceEnabled);

                StorageGlobals.TraceContextStack.Push(this);
                return(traceContextCode);
            }
Esempio n. 2
0
        public static void ContextTraceError <T0, T1, T2>(Trace tracer, string formatString, T0 arg0, T1 arg1, T2 arg2)
        {
            bool isTraceEnabled = tracer.IsTraceEnabled(TraceType.ErrorTrace);

            tracer.TraceError <T0, T1, T2>((long)StorageGlobals.GetTraceContextCode(isTraceEnabled), formatString, arg0, arg1, arg2);
        }
Esempio n. 3
0
        public static void ContextTraceError(Trace tracer, string formatString, params object[] args)
        {
            bool isTraceEnabled = tracer.IsTraceEnabled(TraceType.ErrorTrace);

            tracer.TraceError((long)StorageGlobals.GetTraceContextCode(isTraceEnabled), formatString, args);
        }
Esempio n. 4
0
        public static void ContextTraceError(Trace tracer, string message)
        {
            bool isTraceEnabled = tracer.IsTraceEnabled(TraceType.ErrorTrace);

            tracer.TraceError((long)StorageGlobals.GetTraceContextCode(isTraceEnabled), message);
        }
Esempio n. 5
0
        public static void ContextTraceDebug <T0, T1>(Trace tracer, string formatString, T0 arg0, T1 arg1)
        {
            bool isTraceEnabled = tracer.IsTraceEnabled(TraceType.DebugTrace);

            tracer.TraceDebug <T0, T1>((long)StorageGlobals.GetTraceContextCode(isTraceEnabled), formatString, arg0, arg1);
        }
Esempio n. 6
0
        public static void ContextTraceInformation <T>(Trace tracer, string formatString, T arg0)
        {
            bool isTraceEnabled = tracer.IsTraceEnabled(TraceType.InfoTrace);

            tracer.Information <T>((long)StorageGlobals.GetTraceContextCode(isTraceEnabled), formatString, arg0);
        }
Esempio n. 7
0
        public static void ContextTraceInformation(Trace tracer, string message)
        {
            bool isTraceEnabled = tracer.IsTraceEnabled(TraceType.InfoTrace);

            tracer.Information((long)StorageGlobals.GetTraceContextCode(isTraceEnabled), message);
        }