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); }
/// <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); }