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, there is no guarantee that you'll end up on the same
thread next time you request a page from the server, and there's no
guarantee that a single thread won't handle multiple requests. In fact,
I can promise that a single thread will process multiple requests,
that's how you get performance. 

 

In short, set the properties at the start of the request (in global.asax
for example) and you're fine for that request, but not across requests.

 

-Walden

 

-- 

Walden H Leverich III
Tech Software
(516) 627-3800 x3051

[EMAIL PROTECTED]
http://www.TechSoftInc.com
<BLOCKED::blocked::http://www.techsoftinc.com/> 

Quiquid latine dictum sit altum viditur.
(Whatever is said in Latin seems profound.) 

 

Reply via email to