you very much.
-Original Message-
From: Erich Eichinger [mailto:[EMAIL PROTECTED]
Sent: 2007?9?27? 1:45
To: Log4NET User
Subject: RE: Can I use static logger and ThreadContext.Properties in
asp.net project?
Hi
Xuguang,
Assuming you're not using async-pages, a single request will be
processed by a single thread, so you can set the properties at
request-start and read them later in the process w/out concern. However,
note I said single-request. You cannot use the thread context like
session state,
The ASP.Net server executes the same code for different users in different
threads. So each thread has it own username property. Change the username
property in one thread will not affect the name property of another
thread
I have test this in the VS2005 environment, and it works..