Source/NFX/Debugging.cs
/// <summary>
/// A simplified method for tracing that doesn't evaluate text generation function
/// if tracing is disabled by configuration. It takes context argument that can be passed to the
/// text-generating textFunc functor
/// </summary>
/// <param name="textFunc">Functor to evaluate to get the text sent to logger</param>
/// <param name="ctx">Context object</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. It takes context argument that can be passed to the
text-generating textFunc functor
A simplified method for tracing that doesn ' t evaluate text generation function if tracing is disabled by configuration . It takes context argument that can be passed to the text - generating textFunc functor
[Conditional(TRACE)]
        public static void Write<TContext>(
                                      Func<TContext,string> textFunc,
                                      TContext ctx,
                                      MessageType type = MessageType.Trace,
                                      Guid? correlationContext = null
                                )
        {
            if (Debugging.TraceDisabled)
                return;
            Debugging.Write(textFunc(ctx), null, MessageType.Trace, 0, CoreConsts.TRACE_TOPIC, null, correlationContext, 2);
        }
[ Conditional ( TRACE ) ] public static void Write < TContext > ( Func < TContext , string > textFunc , TContext ctx , MessageType type = MessageType . Trace , Guid ? correlationContext = null ) { if ( Debugging . TraceDisabled ) return ; Debugging . Write ( textFunc ( ctx ) , 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<TContext,string>
Functor to evaluate to get the text sent to logger
Functor to evaluate to get the text sent to logger
ctx
TContext
None
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