private void ZCtor(cTrace pTraceSource, string pInstanceName, bool pContextTraceDelay) { if (pTraceSource.mTraceSource == null) { return; } mTraceSource = pTraceSource; mInstanceName = pInstanceName; mInstanceNumber = Interlocked.Increment(ref mInstanceNumberRoot); if (mTraceSource.ContextTraceMustBeDelayed) { mContextTraceDelay = true; } else { mContextTraceDelay = pContextTraceDelay; } mLock = new object(); if (!mContextTraceDelay) { TraceContext(); } }
internal cRoot(cTrace pTraceSource, string pInstanceName, bool pContextTraceDelay) { ZCtor(pTraceSource, pInstanceName, pContextTraceDelay); }