コード例 #1
0
 public void TraceOut(Guid callToken, params object[] outParameters)
 {
     if (IsEnabled)
     {
         TraceEvent(TraceEventType.Verbose, WellKnownTraceCategory.TraceOut, InstrumentationUtility.SystemEventId.MethodExit, InstrumentationUtility.Resources.FormatStringTraceOut, InstrumentationUtility.GetFullMethodName(InstrumentationUtility.GetCallingMethod()), outParameters != null & outParameters.Length > 0 ? InstrumentationUtility.GetParameterList(outParameters) : InstrumentationUtility.Resources.NoReturnValue, callToken);
     }
 }
コード例 #2
0
 public void TraceOut()
 {
     if (IsEnabled)
     {
         TraceEvent(TraceEventType.Verbose, WellKnownTraceCategory.TraceOut, InstrumentationUtility.SystemEventId.MethodExit, InstrumentationUtility.Resources.FormatStringTraceOutNoTokenAndParams, InstrumentationUtility.GetFullMethodName(InstrumentationUtility.GetCallingMethod()));
     }
 }
コード例 #3
0
        public Guid TraceIn(params object[] parameters)
        {
            Guid callToken = Guid.NewGuid();

            if (IsEnabled)
            {
                TraceEvent(TraceEventType.Verbose, WellKnownTraceCategory.TraceIn, InstrumentationUtility.SystemEventId.MethodEntry, InstrumentationUtility.Resources.FormatStringTraceIn, InstrumentationUtility.GetFullMethodName(InstrumentationUtility.GetCallingMethod()), InstrumentationUtility.GetParameterList(parameters), callToken);
            }

            return(callToken);
        }
コード例 #4
0
 public void TraceIn(Guid callToken)
 {
     if (IsEnabled)
     {
         TraceEvent(TraceEventType.Verbose, WellKnownTraceCategory.TraceIn, InstrumentationUtility.SystemEventId.MethodEntry, InstrumentationUtility.Resources.FormatStringTraceIn, InstrumentationUtility.GetFullMethodName(InstrumentationUtility.GetCallingMethod()), null, callToken);
     }
 }
コード例 #5
0
        public Guid TraceIn()
        {
            Guid callToken = Guid.NewGuid();

            TraceEvent(TraceEventType.Verbose, WellKnownTraceCategory.TraceIn, InstrumentationUtility.SystemEventId.MethodEntry, InstrumentationUtility.Resources.FormatStringTraceIn, InstrumentationUtility.GetFullMethodName(InstrumentationUtility.GetCallingMethod()), null, callToken);

            return(callToken);
        }