Esempio n. 1
0
 /// <summary>
 /// Creates the performance counters to instrument the validation events to the instance names.
 /// </summary>
 /// <param name="instanceNames">The instance names for the performance counters.</param>
 protected override void CreatePerformanceCounters(string[] instanceNames)
 {
     validationCall                    = new ValidationPerformanceCounter(counterCategoryName, "Number of Validation Calls");
     validationSucceeded               = new ValidationPerformanceCounter(counterCategoryName, "Number of Validation Successes");
     validationFailures                = new ValidationPerformanceCounter(counterCategoryName, "Number of Validation Failures");
     validationCallPerSecond           = new ValidationPerformanceCounter(counterCategoryName, "Validation Calls/sec");
     validationSucceededPerSecond      = new ValidationPerformanceCounter(counterCategoryName, "Validation Successes/sec");
     validationFailuresPerSecond       = new ValidationPerformanceCounter(counterCategoryName, "Validation Failures/sec");
     percentageValidationSuccesses     = new ValidationPerformanceCounter(counterCategoryName, "% Validation Successes");
     percentageValidationSuccessesBase = new ValidationPerformanceCounter(counterCategoryName, "% Validation Successes Base");
 }
 /// <summary>
 /// Creates the performance counters to instrument the validation events to the instance names.
 /// </summary>
 /// <param name="instanceNames">The instance names for the performance counters.</param>
 protected override void CreatePerformanceCounters(string[] instanceNames)
 {
     validationCall = new ValidationPerformanceCounter(counterCategoryName, "Number of Validation Calls");
     validationSucceeded = new ValidationPerformanceCounter(counterCategoryName, "Number of Validation Successes");
     validationFailures = new ValidationPerformanceCounter(counterCategoryName, "Number of Validation Failures");
     validationCallPerSecond = new ValidationPerformanceCounter(counterCategoryName, "Validation Calls/sec");
     validationSucceededPerSecond = new ValidationPerformanceCounter(counterCategoryName, "Validation Successes/sec");
     validationFailuresPerSecond = new ValidationPerformanceCounter(counterCategoryName, "Validation Failures/sec");
     percentageValidationSuccesses = new ValidationPerformanceCounter(counterCategoryName, "% Validation Successes");
     percentageValidationSuccessesBase = new ValidationPerformanceCounter(counterCategoryName, "% Validation Successes Base");
 }