One thing that I've been spending a lot of time thinking about recently
is using aspects as diagnostic probes. That was why I was sending out
emails asking questions like "what are the top 10 mistakes that you see
folks making when writing .NET code". 

It is certainly possible to write some an aspect that will enforce
thread affinity at runtime. In fact, I've added that to my list of
interesting diagnostic probes to write. I've written other experimental
diagnostic probes that do interesting things like:

1) Enforce limits on the size of ViewState in an ASP.NET page
2) Enforce limits on the size of Session state in an ASP.NET application
3) Enforce limits on how long a database connection can be held open for

I can see lots of value in using these things, particularly if the folks
who wrote that technology, or folks who are intimately familiar with
that technology can capture their knowledge inside of a diagnostic probe
/ aspect.

Do folks have other interesting ideas for aspects as diagnostic probes? 

-John
http://www.iunknown.com

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to