IIRC Mike's threadpool will propagate the ASP.NET context (he uses implementation detail of HttpContext to get the current context out of the calling threads TLS - so I'm not sure why you have a problem if you're using his pool.
I wrote the shared memory wrapper you mentioned. The usage is very straightforward: Server Segment s = new Segment(“SegmentName”); MySerializableObject o = new MySerializableObject(); s.SetData(o); Client Segment s = new Segment(“SegmentName”); MySerializableObject o = (MySerializableObject)s.GetData(); Be aware that there is a bug in segment.cs where I get the length of the stored data. I cast to a byte at one point instead of a long - so the amount of data you can successfully store is pretty small ;-) I'll get a fix out asap Regards Richard Blewett DevelopMentor -----Original Message----- From: Moderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of SteveC Sent: 17 October 2003 16:52 To: [EMAIL PROTECTED] Subject: [ADVANCED-DOTNET] Custom Cache for HTTP ? I create a custom thread pool at app startup in an ASP.NET app (thanks to Mike Woodring) for long-running async processes. The thread's output (a dataset) is serialized to disk and then picked up by the original calling ASP.NET user. I would like to speed this up by writing to a memory cache location. The problem is that threads in the custom thread pool can't call System.Web.HttpContext.Current (nor can they call System.Reflection.Assembly.GetEntryAssembly().GetName().Name) to find where they came from. I started to look into a shared memory sample, since the ASP.NET pool and custom thread pool are all inside aspnet_wp.exe "inside" the CLR, but it seems to be missing the example/sample projects (http://staff.develop.com/richardb/weblog/). Any thoughts greatly appreciated of course. =================================== This list is hosted by DevelopMentor® http://www.develop.com NEW! ASP.NET courses you may be interested in: 2 Days of ASP.NET, 29 Sept 2003, in Redmond http://www.develop.com/courses/2daspdotnet Guerrilla ASP.NET, 13 Oct 2003, in Boston http://www.develop.com/courses/gaspdotnet View archives and manage your subscription(s) at http://discuss.develop.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.525 / Virus Database: 322 - Release Date: 09/10/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.525 / Virus Database: 322 - Release Date: 09/10/2003 =================================== This list is hosted by DevelopMentor® http://www.develop.com NEW! ASP.NET courses you may be interested in: 2 Days of ASP.NET, 29 Sept 2003, in Redmond http://www.develop.com/courses/2daspdotnet Guerrilla ASP.NET, 13 Oct 2003, in Boston http://www.develop.com/courses/gaspdotnet View archives and manage your subscription(s) at http://discuss.develop.com