Esempio n. 1
0
                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();
                    }
                }
Esempio n. 2
0
 internal cRoot(cTrace pTraceSource, string pInstanceName, bool pContextTraceDelay)
 {
     ZCtor(pTraceSource, pInstanceName, pContextTraceDelay);
 }