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