Source/NFX/Debugging.cs
/// <summary>
/// A simplified method for tracing that doesn't evaluate text generation function
/// if tracing is disabled by configuration
/// </summary>
/// <param name="textFunc">Functor to evaluate to get the text sent to logger</param>
/// <param name="type">Message type to log</param>
/// <param name="correlationContext">Optional correlation token to relate log entries</param>
A simplified method for tracing that doesn't evaluate text generation function
if tracing is disabled by configuration
A simplified method for tracing that doesn ' t evaluate text generation function if tracing is disabled by configuration
[Conditional(TRACE)]
        public static void Write(
                                      Func<string> textFunc,
                                      MessageType type = MessageType.Trace,
                                      Guid? correlationContext = null
                                )
        {
            if (Debugging.TraceDisabled)
                return;
            Debugging.Write(textFunc(), null, MessageType.Trace, 0, CoreConsts.TRACE_TOPIC, null, correlationContext, 2);
        }
[ Conditional ( TRACE ) ] public static void Write ( Func < string > textFunc , MessageType type = MessageType . Trace , Guid ? correlationContext = null ) { if ( Debugging . TraceDisabled ) return ; Debugging . Write ( textFunc ( ) , null , MessageType . Trace , 0 , CoreConsts . TRACE_TOPIC , null , correlationContext , 2 ) ; }
A simplified method for tracing that doesn't evaluate text generation function
if tracing is disabled by configuration
A simplified method for tracing that doesn ' t evaluate text generation function if tracing is disabled by configuration
textFunc
Func<string>
Functor to evaluate to get the text sent to logger
Functor to evaluate to get the text sent to logger
type
MessageType
Message type to log
Message type to log
correlationContext
Guid?
Optional correlation token to relate log entries
Optional correlation token to relate log entries