surrealization.com

Occasionally I come up with something worthwhile

Getting Notified When An IIS AppPool Recycles

Wednesday, May 07 2008

IIS Application Pool recycling in IIS 6 is a crutch for poorly performing code and is frequently misunderstood and overused. However, if you do have a need to use it and want to minimize the hit of your applications in that AppPool spinning up again on the next request, you can use the following code to determine when it recycles. First, you need to configure IIS to enable reporting AppPool recycle events. This is off by default. This can easily be done using WMI and C#: using System; using System.Collections.Generic; using System.DirectoryServices; using System.Linq; using System.Text; namespace...

Host the Windows Workflow Foundation Designer In Your Own App

Monday, June 19 2006

Mostly for my own reference, but here is an article on MSDN for hosting the WF design surface in your own application.

ScottGu Article on DLINQ

Monday, June 05 2006

Scott Guthrie has posted part 2 of a series of postings on LINQ . This one gets into DLINQ specifically and definitely starts to show off some of the reasons why you'd want to use it (iterating over your own object collection is neat and all, but doing SQL queries in code without SQL and System.Data is a spectacular demonstration). I'd still like to see more of the nuts and bolts of how to enable LINQ on your own custom objects, however....

ScottGu Article on LINQ

Monday, May 15 2006

Scott Guthrie has the best article I've seen so far on LINQ so far. He's glossing over how to do some of the fancier stuff such as supporting all this stuff in your own objects (so instead of just a List and arrays), but overall the article demonstrates LINQ incredibly well.

Source Code for the Built-in ASP.NET 2.0 Providers Now Available for Download

Thursday, April 13 2006

Ala Scott Guthrie's weblog, Microsoft released the source code for all the built-in ASP.NET 2.0 providers (membership, site map, session, etc).

I'm actually rather surprised they did this. I'm impressed they would understand the value of showing their source code (not in the way all the anti-MS zealots want) to the various real-world components they have. It's one thing to read an article on MSDN and get a Hello World example, it's another thing to see the code they actually wrote.