49 references to ShouldTrace
System (14)
compmod\system\diagnostics\TraceSource.cs (6)
245
if (internalSwitch.
ShouldTrace
(eventType) && listeners != null) {
281
if (internalSwitch.
ShouldTrace
(eventType) && listeners != null) {
317
if (internalSwitch.
ShouldTrace
(eventType) && listeners != null) {
353
if (internalSwitch.
ShouldTrace
(eventType) && listeners != null) {
389
if (internalSwitch.
ShouldTrace
(eventType) && listeners != null) {
437
if (internalSwitch.
ShouldTrace
(TraceEventType.Transfer) && listeners != null) {
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.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.Transactions (1)
System\Transactions\Trace\DiagnosticTrace.cs (1)
247
if (DiagnosticTrace.TraceSource.Switch.
ShouldTrace
(TraceEventType.Critical))
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 (1)
Base\MS\Internal\AvTrace.cs (1)
277
|| !_traceSource.Switch.
ShouldTrace
( type ))