public override void ExecuteCmdlet() { var dsProperties = new PSWindowsPerformanceCounterDataSourceProperties { ObjectName = this.ObjectName, InstanceName = this.InstanceName, IntervalSeconds = this.IntervalSeconds, CounterName = this.CounterName }; CreatePSDataSourceWithProperties(dsProperties); }
public override void ExecuteCmdlet() { var dsProperties = new PSWindowsPerformanceCounterDataSourceProperties { ObjectName = this.ObjectName, InstanceName = this.InstanceName, IntervalSeconds = this.IntervalSeconds, CounterName = this.CounterName, CollectorType = CollectorType.Default }; if (UseLegacyCollector.IsPresent) { dsProperties.CollectorType = CollectorType.Legacy; } CreatePSDataSourceWithProperties(dsProperties); }