44 references to PerformanceCounterScope
System.ServiceModel (44)
System\ServiceModel\Configuration\DiagnosticSection.cs (3)
39[ConfigurationProperty(ConfigurationStrings.PerformanceCounters, DefaultValue = PerformanceCounterScope.Default)] 41public PerformanceCounterScope PerformanceCounters 43get { return (PerformanceCounterScope)base[ConfigurationStrings.PerformanceCounters]; }
System\ServiceModel\Configuration\Properties.cs (2)
1069properties.Add(new ConfigurationProperty("performanceCounters", typeof(System.ServiceModel.Diagnostics.PerformanceCounterScope), System.ServiceModel.Diagnostics.PerformanceCounterScope.Default, null, new System.ServiceModel.Configuration.ServiceModelEnumValidator(typeof(System.ServiceModel.Diagnostics.PerformanceCounterScopeHelper)), System.Configuration.ConfigurationPropertyOptions.None));
System\ServiceModel\Diagnostics\PerformanceCounters.cs (26)
25static PerformanceCounterScope scope; 40static internal PerformanceCounterScope Scope 56return (PerformanceCounters.scope != PerformanceCounterScope.Off) && 57(PerformanceCounters.scope != PerformanceCounterScope.Default); 65return (PerformanceCounters.scope == PerformanceCounterScope.Default); 71PerformanceCounterScope scope = GetPerformanceCountersFromConfig(); 72if (PerformanceCounterScope.Off != scope) 76if (scope == PerformanceCounterScope.Default) 78scope = OSEnvironmentHelper.IsVistaOrGreater ? PerformanceCounterScope.ServiceOnly : PerformanceCounterScope.Off; 85PerformanceCounters.scope = PerformanceCounterScope.Off; 99PerformanceCounters.scope = PerformanceCounterScope.Off; 106static PerformanceCounterScope GetPerformanceCountersFromConfig() 188PerformanceCounters.scope = PerformanceCounterScope.Off; 452if (PerformanceCounters.Scope == PerformanceCounterScope.All) 521if (PerformanceCounters.Scope == PerformanceCounterScope.All) 553if (PerformanceCounters.Scope == PerformanceCounterScope.All) 597if (PerformanceCounters.Scope == PerformanceCounterScope.All) 641if (PerformanceCounters.Scope == PerformanceCounterScope.All) 697if (PerformanceCounters.Scope == PerformanceCounterScope.All) 732if (PerformanceCounters.Scope == PerformanceCounterScope.All) 761if (PerformanceCounters.Scope == PerformanceCounterScope.All) 781if (PerformanceCounters.Scope == PerformanceCounterScope.All) 797if (PerformanceCounters.Scope == PerformanceCounterScope.All) 809if (PerformanceCounters.Scope == PerformanceCounterScope.All) 821if (PerformanceCounters.Scope == PerformanceCounterScope.All)
System\ServiceModel\Diagnostics\PerformanceCounterScope.cs (7)
18internal static bool IsDefined(PerformanceCounterScope value) 21value == PerformanceCounterScope.Off 22|| value == PerformanceCounterScope.Default 23|| value == PerformanceCounterScope.ServiceOnly 24|| value == PerformanceCounterScope.All; 27public static void Validate(PerformanceCounterScope value) 32typeof(PerformanceCounterScope)));
System\ServiceModel\Diagnostics\PerformanceCountersFactory.cs (4)
41PerformanceCounters.Scope = PerformanceCounterScope.Off; 76PerformanceCounters.Scope = PerformanceCounterScope.Off; 111PerformanceCounters.Scope = PerformanceCounterScope.Off; 136PerformanceCounters.Scope = PerformanceCounterScope.Off;
System\ServiceModel\Diagnostics\ServiceModelPerformanceCounters.cs (2)
34if (PerformanceCounters.Scope == PerformanceCounterScope.All) 104Fx.Assert(PerformanceCounters.Scope == PerformanceCounterScope.All, "Only call GetOparationPerformanceCounters when performance counter scope is All");