4 writes to Current
System.ServiceModel (4)
System\ServiceModel\Diagnostics\ServiceModelActivity.cs (4)
112
ServiceModelActivity.
Current
= activity;
244
ServiceModelActivity.
Current
= retval;
292
ServiceModelActivity.
Current
= this.previousActivity;
523
ServiceModelActivity.
Current
= this.previousActivity;
38 references to Current
System.ServiceModel (38)
System\ServiceModel\Channels\ConnectionOrientedTransportChannelFactory.cs (2)
91
ServiceModelActivity.
Current
!= null && ServiceModelActivity.
Current
.ActivityType == ActivityType.OpenClient);
System\ServiceModel\Channels\DatagramAdapter.cs (1)
377
activity = ServiceModelActivity.
Current
;
System\ServiceModel\Channels\HttpChannelHelpers.cs (2)
489
((ServiceModelActivity.
Current
== null) ||
490
(ServiceModelActivity.
Current
.ActivityType != ActivityType.ProcessAction)))
System\ServiceModel\Channels\MsmqDiagnostics.cs (2)
78
if (DiagnosticUtility.ShouldUseActivity && null != ServiceModelActivity.
Current
&& ActivityType.ProcessAction != ServiceModelActivity.
Current
.ActivityType)
System\ServiceModel\Channels\ServiceChannelProxy.cs (2)
304
if (ServiceModelActivity.
Current
== null ||
305
ServiceModelActivity.
Current
.ActivityType != ActivityType.Close)
System\ServiceModel\Channels\SessionConnectionReader.cs (9)
1141
ServiceModelActivity.
Current
!= null &&
1142
ServiceModelActivity.
Current
.ActivityType == ActivityType.ProcessAction)
1144
ServiceModelActivity.
Current
.Resume();
1539
if ((ServiceModelActivity.
Current
!= null) &&
1540
(ServiceModelActivity.
Current
.ActivityType == ActivityType.ProcessAction))
1544
else if ((ServiceModelActivity.
Current
!= null) &&
1545
(ServiceModelActivity.
Current
.PreviousActivity != null) &&
1546
(ServiceModelActivity.
Current
.PreviousActivity.ActivityType == ActivityType.ProcessAction))
1548
retval = ServiceModelActivity.BoundOperation(ServiceModelActivity.
Current
.PreviousActivity);
System\ServiceModel\Diagnostics\ServiceModelActivity.cs (5)
59
this.previousActivity = ServiceModelActivity.
Current
;
110
retval.SetPreviousServiceModelActivity(ServiceModelActivity.
Current
);
176
ServiceModelActivity activityToSuspend = ServiceModelActivity.
Current
;
285
ServiceModelActivity.
Current
!= null)
287
ServiceModelActivity.
Current
.Resume();
System\ServiceModel\Diagnostics\TraceAsyncResult.cs (1)
24
this.CallbackActivity = ServiceModelActivity.
Current
;
System\ServiceModel\Diagnostics\TraceUtility.cs (10)
469
ServiceModelActivity callbackActivity = ServiceModelActivity.
Current
;
614
ServiceModelActivity activity = ServiceModelActivity.
Current
;
641
ServiceModelActivity activity = ServiceModelActivity.
Current
;
1116
if (ServiceModelActivity.
Current
!= null)
1118
if ((ServiceModelActivity.
Current
.Id == guid) ||
1119
(ServiceModelActivity.
Current
.ActivityType == ActivityType.ProcessAction))
1121
activity = ServiceModelActivity.
Current
;
1124
else if (ServiceModelActivity.
Current
.PreviousActivity != null &&
1125
ServiceModelActivity.
Current
.PreviousActivity.Id == guid)
1127
activity = ServiceModelActivity.
Current
.PreviousActivity;
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (3)
484
ServiceModelActivity.
Current
!= null &&
485
ServiceModelActivity.
Current
.ActivityType == ActivityType.ProcessAction)
487
ServiceModelActivity.
Current
.Suspend();
System\ServiceModel\Security\SecurityProtocolCorrelationState.cs (1)
23
this.activity = DiagnosticUtility.ShouldUseActivity ? ServiceModelActivity.
Current
: null;