Windows Home Server Health Notification Sample Code

The following sample code demonstrates how to store health notifications and how to determine the current health of the home server.

This sample is based on a polling model, where a developer can call GetHealthState() at any time to find out the current health of the system, rather than doing so automatically each time a notification is received.