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