66 references to ShouldUseActivity
dotnet-svcutil-lib (66)
FrameworkFork\System.ServiceModel\System\ServiceModel\ChannelFactory.cs (8)
417
using (ServiceModelActivity activity = DiagnosticUtility.
ShouldUseActivity
? ServiceModelActivity.CreateBoundedActivity() : null)
419
if (DiagnosticUtility.
ShouldUseActivity
)
437
using (ServiceModelActivity activity = DiagnosticUtility.
ShouldUseActivity
? ServiceModelActivity.CreateBoundedActivity() : null)
439
if (DiagnosticUtility.
ShouldUseActivity
)
467
using (ServiceModelActivity activity = DiagnosticUtility.
ShouldUseActivity
? ServiceModelActivity.CreateBoundedActivity() : null)
469
if (DiagnosticUtility.
ShouldUseActivity
)
486
using (ServiceModelActivity activity = DiagnosticUtility.
ShouldUseActivity
? ServiceModelActivity.CreateBoundedActivity() : null)
488
if (DiagnosticUtility.
ShouldUseActivity
)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CommunicationObject.cs (1)
547
_traceOpenAndClose = value && DiagnosticUtility.
ShouldUseActivity
;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (6)
691
if (DiagnosticUtility.
ShouldUseActivity
)
701
if (DiagnosticUtility.
ShouldUseActivity
)
707
if (DiagnosticUtility.
ShouldUseActivity
)
735
using (rpc.Activity = DiagnosticUtility.
ShouldUseActivity
? ServiceModelActivity.CreateBoundedActivity() : null)
737
if (DiagnosticUtility.
ShouldUseActivity
)
797
if (sendResult.Rpc.Activity != null && DiagnosticUtility.
ShouldUseActivity
)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelProxy.cs (2)
319
if (DiagnosticUtility.
ShouldUseActivity
)
336
if (DiagnosticUtility.
ShouldUseActivity
)
FrameworkFork\System.ServiceModel\System\ServiceModel\ClientBase.cs (4)
93
using (ServiceModelActivity activity = DiagnosticUtility.
ShouldUseActivity
? ServiceModelActivity.CreateBoundedActivity() : null)
95
if (DiagnosticUtility.
ShouldUseActivity
)
202
using (ServiceModelActivity activity = DiagnosticUtility.
ShouldUseActivity
? ServiceModelActivity.CreateBoundedActivity() : null)
204
if (DiagnosticUtility.
ShouldUseActivity
)
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\ServiceModelActivity.cs (12)
81
if (!DiagnosticUtility.
ShouldUseActivity
)
95
if (!DiagnosticUtility.
ShouldUseActivity
)
114
if (!DiagnosticUtility.
ShouldUseActivity
)
123
if (!DiagnosticUtility.
ShouldUseActivity
)
137
if (!DiagnosticUtility.
ShouldUseActivity
)
148
if (!DiagnosticUtility.
ShouldUseActivity
)
167
if (!DiagnosticUtility.
ShouldUseActivity
)
191
if (!DiagnosticUtility.
ShouldUseActivity
)
205
if (!DiagnosticUtility.
ShouldUseActivity
)
228
if (!DiagnosticUtility.
ShouldUseActivity
)
246
if (!DiagnosticUtility.
ShouldUseActivity
)
395
if (!DiagnosticUtility.
ShouldUseActivity
)
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\TraceAsyncResult.cs (1)
21
else if (DiagnosticUtility.
ShouldUseActivity
)
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\TraceUtility.cs (8)
65
if (DiagnosticUtility.
ShouldUseActivity
)
85
if ((DiagnosticUtility.
ShouldUseActivity
|| TraceUtility.ShouldPropagateActivityGlobal) &&
138
if (activity != null && DiagnosticUtility.
ShouldUseActivity
)
165
if (DiagnosticUtility.
ShouldUseActivity
)
184
if (DiagnosticUtility.
ShouldUseActivity
&& message != null && message.State != MessageState.Closed)
440
if (message != null && DiagnosticUtility.
ShouldUseActivity
)
477
if (DiagnosticUtility.
ShouldUseActivity
)
555
return (DiagnosticUtility.
ShouldUseActivity
&& callback != null) ?
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelHandler.cs (1)
688
ServiceModelActivity activity = DiagnosticUtility.
ShouldUseActivity
? TraceUtility.ExtractActivity(request.RequestMessage) : null;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DispatchOperationRuntime.cs (1)
320
if (DiagnosticUtility.
ShouldUseActivity
&& rpc.Activity != null && reply != null)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (7)
473
if (DiagnosticUtility.
ShouldUseActivity
&&
826
if (DiagnosticUtility.
ShouldUseActivity
)
879
ServiceModelActivity replyActivity = DiagnosticUtility.
ShouldUseActivity
?
963
ServiceModelActivity replyActivity = DiagnosticUtility.
ShouldUseActivity
?
981
if (replyActivity != null && DiagnosticUtility.
ShouldUseActivity
)
984
if (DiagnosticUtility.
ShouldUseActivity
&& _activity != null)
993
if (DiagnosticUtility.
ShouldUseActivity
&& replyActivity != null)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ImmutableDispatchRuntime.cs (1)
847
if (rpc.Activity != null && DiagnosticUtility.
ShouldUseActivity
)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\MessageRpc.cs (2)
122
if (DiagnosticUtility.
ShouldUseActivity
)
127
if (DiagnosticUtility.
ShouldUseActivity
|| TraceUtility.ShouldPropagateActivity)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\SyncMethodInvoker.cs (2)
112
if (DiagnosticUtility.
ShouldUseActivity
)
137
if (DiagnosticUtility.
ShouldUseActivity
)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (2)
171
if (DiagnosticUtility.
ShouldUseActivity
)
196
if (DiagnosticUtility.
ShouldUseActivity
)
FrameworkFork\System.ServiceModel\System\ServiceModel\DuplexChannelFactory.cs (8)
63
using (ServiceModelActivity activity = DiagnosticUtility.
ShouldUseActivity
? ServiceModelActivity.CreateBoundedActivity() : null)
65
if (DiagnosticUtility.
ShouldUseActivity
)
89
using (ServiceModelActivity activity = DiagnosticUtility.
ShouldUseActivity
? ServiceModelActivity.CreateBoundedActivity() : null)
91
if (DiagnosticUtility.
ShouldUseActivity
)
125
using (ServiceModelActivity activity = DiagnosticUtility.
ShouldUseActivity
? ServiceModelActivity.CreateBoundedActivity() : null)
127
if (DiagnosticUtility.
ShouldUseActivity
)
150
using (ServiceModelActivity activity = DiagnosticUtility.
ShouldUseActivity
? ServiceModelActivity.CreateBoundedActivity() : null)
152
if (DiagnosticUtility.
ShouldUseActivity
)