Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Woodring's custom thread pool with IHttpAsyncHandler

Reply
Thread Tools

Woodring's custom thread pool with IHttpAsyncHandler

 
 
buzz
Guest
Posts: n/a
 
      11-22-2004
I am evaluating Mike Woodring's custom thread pool classes
(Developmentor) for use with an ASP.NET project that will be
implementing pages derived from IHttpAsyncHandler. (Recommended by the
famous Fritz Onion article on IHttpAsyncHandler...)

I understand most of the code, however I am at a losss of the purpose of
the ThreadInfo class. It appears that it is used to get the current
HTTP context object for a worker thread?? But, can't the HTTP context
object be passed to a worker thread via the WorkRequest object? Is it
due to the HTTP context object being created(?) with respect to the
request thread?

If anyone has used the custom thread pool code, can you give me an
executive summary on the ThreadInfo class, or point me to some
documentation?

thanx

buzz
 
Reply With Quote
 
 
 
 
Scott Allen
Guest
Posts: n/a
 
      11-23-2004
buzz:

It looks like Thread info does a number of other useful things, like
propogate the first thread's current principal, the CallContext, and
sometime in the future perhaps any code access security information
from the other thread. It is all neatly encapsulated in one class for
the caller to use instead of coding it each time.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Mon, 22 Nov 2004 16:56:26 -0500, buzz <(E-Mail Removed)> wrote:

>I am evaluating Mike Woodring's custom thread pool classes
>(Developmentor) for use with an ASP.NET project that will be
>implementing pages derived from IHttpAsyncHandler. (Recommended by the
>famous Fritz Onion article on IHttpAsyncHandler...)
>
>I understand most of the code, however I am at a losss of the purpose of
>the ThreadInfo class. It appears that it is used to get the current
>HTTP context object for a worker thread?? But, can't the HTTP context
>object be passed to a worker thread via the WorkRequest object? Is it
>due to the HTTP context object being created(?) with respect to the
>request thread?
>
>If anyone has used the custom thread pool code, can you give me an
>executive summary on the ThreadInfo class, or point me to some
>documentation?
>
>thanx
>
>buzz


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
an't start a thread Pool from another thread Glazner Python 0 01-06-2010 08:15 PM
Thread control in thread pool for sending testisok Python 0 02-17-2009 07:34 AM
[Thread[pool-1-thread-2,5,main] - What does this mean? Hugo Java 4 03-27-2008 01:42 AM
Newbie:Using ASP.NET thread pool thread to dispatch TCP data, etc. Navin Mishra ASP .Net Web Services 0 03-22-2005 06:45 PM
IHttpAsyncHandler -- Global custom thread pool buzz ASP .Net 0 12-15-2004 04:03 PM



Advertisments