public void Install()
{
Uninstall();
Logging.Log.Info("Installing performance counter");
CounterCreationDataCollection counters = new CounterCreationDataCollection();
foreach (var desc in GetAllDescs())
{
counters.Add(desc.Create());
}
PerformanceCounterCategory.Create(Category, "A custom counter category that tracks Zetbox executions",
PerformanceCounterCategoryType.MultiInstance, counters);
Logging.Log.Info("Performance counter sucessfully installed");
}