Ejemplo n.º 1
0
 internal static void TraceSynchronousWorkCompletion(CausalityTraceLevel traceLevel, CausalitySynchronousWork work)
 {
     if (LoggingOn)
     {
         s_TracerFactory.TraceSynchronousWorkCompletion((WFD.CausalityTraceLevel)traceLevel, s_CausalitySource, (WFD.CausalitySynchronousWork)work);
     }
 }
Ejemplo n.º 2
0
 internal static void TraceSynchronousWorkCompletion(CausalitySynchronousWork work)
 {
     try
     {
         if ((f_LoggingOn & Loggers.ETW) != 0)
         {
             TplEventSource.Log.TraceSynchronousWorkEnd(work);
         }
         if ((f_LoggingOn & Loggers.CausalityTracer) != 0)
         {
             s_TracerFactory.TraceSynchronousWorkCompletion(WFD.CausalityTraceLevel.Required, s_CausalitySource, (WFD.CausalitySynchronousWork)work);
         }
     }
     catch (Exception ex)
     {
         //view function comment
         LogAndDisable(ex);
     }
 }
Ejemplo n.º 3
0
        internal static void TraceSynchronousWorkCompletion(CausalityTraceLevel traceLevel, CausalitySynchronousWork work)
        {
#if FEATURE_COMINTEROP
            try
            {
                if ((f_LoggingOn & Loggers.ETW) != 0)
                {
                    TplEtwProvider.Log.TraceSynchronousWorkEnd(work);
                }
                if ((f_LoggingOn & Loggers.CausalityTracer) != 0)
                {
                    s_TracerFactory.TraceSynchronousWorkCompletion((WFD.CausalityTraceLevel)traceLevel, s_CausalitySource, (WFD.CausalitySynchronousWork)work);
                }
            }
            catch (Exception ex)
            {
                //view function comment
                LogAndDisable(ex);
            }
#endif
        }