5 writes to Switch
System.Workflow.Activities (2)
ActivityTrace.cs (2)
45
activity.
Switch
= new SourceSwitch("System.Workflow.Activities", SourceLevels.Off.ToString());
48
rules.
Switch
= new SourceSwitch("System.Workflow.Activities.Rules", SourceLevels.Off.ToString());
System.Workflow.ComponentModel (3)
AuthoringOM\Trace.cs (3)
62
runtime.
Switch
= new SourceSwitch("System.Workflow.Runtime", SourceLevels.Off.ToString());
66
tracking.
Switch
= new SourceSwitch("System.Workflow.Runtime.Tracking", SourceLevels.Off.ToString());
69
host.
Switch
= new SourceSwitch("System.Workflow.Runtime.Hosting", SourceLevels.Off.ToString());
56 references to Switch
System (8)
net\System\Net\Logging.cs (7)
200
loggingEnabled = (s_WebTraceSource.
Switch
.ShouldTrace(TraceEventType.Critical) ||
201
s_HttpListenerTraceSource.
Switch
.ShouldTrace(TraceEventType.Critical) ||
202
s_SocketsTraceSource.
Switch
.ShouldTrace(TraceEventType.Critical) ||
203
s_WebSocketsTraceSource.
Switch
.ShouldTrace(TraceEventType.Critical) ||
204
s_CacheTraceSource.
Switch
.ShouldTrace(TraceEventType.Critical) ||
205
s_TraceSourceHttpName.
Switch
.ShouldTrace(TraceEventType.Critical));
266
if (traceSource == null || !traceSource.
Switch
.ShouldTrace(traceLevel)) {
net\System\Net\WebSockets\WebSocketBase.cs (1)
80
s_LoggingEnabled = Logging.On && Logging.WebSockets.
Switch
.ShouldTrace(TraceEventType.Critical);
System.Net (27)
net\Logging.cs (3)
30
if (s_P2PTraceSource.
Switch
.ShouldTrace(TraceEventType.Critical))
80
if(source.
Switch
.ShouldTrace(TraceEventType.Verbose))
87
if (source.
Switch
.ShouldTrace(TraceEventType.Verbose))
net\PeerToPeer\Collaboration\ContactManager.cs (3)
1530
if (Logging.P2PTraceSource.
Switch
.ShouldTrace(TraceEventType.Information)){
1647
if (Logging.P2PTraceSource.
Switch
.ShouldTrace(TraceEventType.Information)){
1752
if (Logging.P2PTraceSource.
Switch
.ShouldTrace(TraceEventType.Information)){
net\PeerToPeer\Collaboration\Peer.cs (6)
364
if (Logging.P2PTraceSource.
Switch
.ShouldTrace(TraceEventType.Information)){
521
if (Logging.P2PTraceSource.
Switch
.ShouldTrace(TraceEventType.Information)){
605
if (Logging.P2PTraceSource.
Switch
.ShouldTrace(TraceEventType.Information)){
658
if (Logging.P2PTraceSource.
Switch
.ShouldTrace(TraceEventType.Information)){
661
if (Logging.P2PTraceSource.
Switch
.ShouldTrace(TraceEventType.Verbose) && (invitationData != null)){
1154
if (Logging.P2PTraceSource.
Switch
.ShouldTrace(TraceEventType.Information)){
net\PeerToPeer\Collaboration\PeerApplication.cs (1)
542
if (Logging.P2PTraceSource.
Switch
.ShouldTrace(TraceEventType.Verbose)){
net\PeerToPeer\Collaboration\PeerCollaboration.cs (4)
503
if (Logging.P2PTraceSource.
Switch
.ShouldTrace(TraceEventType.Information)){
582
if (Logging.P2PTraceSource.
Switch
.ShouldTrace(TraceEventType.Information))
802
if (Logging.P2PTraceSource.
Switch
.ShouldTrace(TraceEventType.Information)){
864
if (Logging.P2PTraceSource.
Switch
.ShouldTrace(TraceEventType.Information)){
net\PeerToPeer\Collaboration\PeerContact.cs (4)
438
if (Logging.P2PTraceSource.
Switch
.ShouldTrace(TraceEventType.Information)){
1010
if (Logging.P2PTraceSource.
Switch
.ShouldTrace(TraceEventType.Information)){
1094
if (Logging.P2PTraceSource.
Switch
.ShouldTrace(TraceEventType.Information)){
2024
if (Logging.P2PTraceSource.
Switch
.ShouldTrace(TraceEventType.Verbose)){
net\PeerToPeer\Collaboration\PeerNearMe.cs (2)
340
if (Logging.P2PTraceSource.
Switch
.ShouldTrace(TraceEventType.Information)){
903
if (Logging.P2PTraceSource.
Switch
.ShouldTrace(TraceEventType.Verbose)){
net\PeerToPeer\Collaboration\PeerObject.cs (1)
472
if (Logging.P2PTraceSource.
Switch
.ShouldTrace(TraceEventType.Verbose)){
net\PeerToPeer\PeerNameRecord.cs (1)
184
if (Logging.P2PTraceSource.
Switch
.ShouldTrace(TraceEventType.Verbose))
net\PeerToPeer\PeerNameRegistration.cs (2)
325
if (Logging.P2PTraceSource.
Switch
.ShouldTrace(TraceEventType.Information))
516
if (Logging.P2PTraceSource.
Switch
.ShouldTrace(TraceEventType.Information))
System.Runtime.Serialization (1)
System\Runtime\Serialization\SerializationTrace.cs (1)
24
return CodeGenerationTraceSource.
Switch
;
System.Security (2)
system\security\cryptography\xml\SignedXmlDebugLog.cs (2)
168
s_informationLogging = s_traceSource.
Switch
.ShouldTrace(TraceEventType.Information);
183
s_verboseLogging = s_traceSource.
Switch
.ShouldTrace(TraceEventType.Verbose);
System.ServiceModel (2)
System\ServiceModel\Diagnostics\MessageLogger.cs (1)
731
tempSource.
Switch
.Level = SourceLevels.Information;
System\ServiceModel\Diagnostics\OperationInvokerTrace.cs (1)
23
get { return CodeGenerationTraceSource.
Switch
; }
System.ServiceModel.Internals (4)
System\Runtime\Diagnostics\DiagnosticTraceBase.cs (4)
152
this.TraceSource.
Switch
.Level = level;
170
if (this.TraceSource != null && (this.TraceSource.
Switch
.Level != this.level))
172
this.level = this.TraceSource.
Switch
.Level;
311
this.SetLevel(this.TraceSource.
Switch
.Level);
System.Transactions (5)
System\Transactions\Trace\DiagnosticTrace.cs (5)
149
DiagnosticTrace.TraceSource.
Switch
.Level = fixedLevel;
175
if (DiagnosticTrace.TraceSource != null && (DiagnosticTrace.TraceSource.
Switch
.Level != DiagnosticTrace.level))
177
DiagnosticTrace.level = DiagnosticTrace.TraceSource.
Switch
.Level;
247
if (DiagnosticTrace.TraceSource.
Switch
.ShouldTrace(TraceEventType.Critical))
254
DiagnosticTrace.SetLevel(DiagnosticTrace.TraceSource.
Switch
.Level);
System.Web.Services (2)
System\Web\Services\Diagnostics\TraceUtility.cs (2)
73
if (asmxTraceSource.
Switch
.ShouldTrace(TraceEventType.Critical)) {
123
if (traceSource == null || !traceSource.
Switch
.ShouldTrace(traceLevel)) {
System.Workflow.Activities (2)
Rules\RuleEngine.cs (2)
42
if (WorkflowActivityTrace.Rules.
Switch
.ShouldTrace(TraceEventType.Information))
64
if (WorkflowActivityTrace.Rules.
Switch
.ShouldTrace(TraceEventType.Information))
WindowsBase (3)
Base\MS\Internal\AvTrace.cs (1)
277
|| !_traceSource.
Switch
.ShouldTrace( type ))
Base\System\Diagnostics\PresentationTraceSources.cs (2)
135
if (source.
Switch
.Level == SourceLevels.Off
144
source.
Switch
.Level = SourceLevels.Warning;