Regards,
Sean
On 6/21/06, Ron Grabowski <
[EMAIL PROTECTED]> wrote:
The NDC is implemented with a ThreadContextStack which internally uses
a Stack to store values. If you don't push anything onto the NDC, the
Stack remains empty with a Count of zero.
The NDC has a value when log messages are written inside of its scope:
using(ThreadContext.Stacks ["NDC"].Push("Hello"))
{
log.Info("World");
}
--- Ken Chu <[EMAIL PROTECTED]> wrote:
> Hmm, you mean the NDC doesn't always have a value? Then when is the
> NDC not
> empty? I had assumed it always had a value of some sort, like a
> thread id.
>
> -Ken
