示例#1
0
                    public override cContext NewGeneric(bool pContextTraceDelay, string pMessage, params object[] pArgs)
                    {
                        bool lContextTraceDelay = mContextTraceDelay || pContextTraceDelay;
                        var  lResult            = new cSubGeneric(mRoot, this, mLevel, lContextTraceDelay, pMessage, pArgs);

                        if (!lContextTraceDelay)
                        {
                            lResult.TraceContext();
                        }
                        return(lResult);
                    }
示例#2
0
                /// <inheritdoc/>
                public override cContext NewGeneric(bool pContextTraceDelay, string pMessage, params object[] pArgs)
                {
                    if (mTraceSource == null)
                    {
                        return(this);
                    }
                    bool lContextTraceDelay = mContextTraceDelay || pContextTraceDelay;
                    var  lResult            = new cSubGeneric(this, this, 1, lContextTraceDelay, pMessage, pArgs);

                    if (!lContextTraceDelay)
                    {
                        lResult.TraceContext();
                    }
                    return(lResult);
                }