How do I... Publish a custom application performance counter in C#?
Source: Zach Smith
One important aspect of enterprise level application development is the need to monitor processes and determine if those processes are working as intended. This can be solved many different ways -- from logging transactions to a database to sending e-mail alerts. One often overlooked solution to this problem is to use performance counters to expose application performance information. Zach Smith demonstrates how to publish a custom performance counter from your applications using C#.
This download is also available as an entry in the TechRepublic Programming and Development blog.