2 instantiations of ServiceModelActivity
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\ServiceModelActivity.cs (2)
223
return new
ServiceModelActivity
(activityId);
235
retval = new
ServiceModelActivity
(activityId);
160 references to ServiceModelActivity
dotnet-svcutil-lib (160)
FrameworkFork\System.ServiceModel\System\ServiceModel\ChannelFactory.cs (12)
417
using (
ServiceModelActivity
activity = DiagnosticUtility.ShouldUseActivity ?
ServiceModelActivity
.CreateBoundedActivity() : null)
421
ServiceModelActivity
.Start(activity, string.Format(SRServiceModel.ActivityConstructChannelFactory, typeof(TChannel).FullName), ActivityType.Construct);
437
using (
ServiceModelActivity
activity = DiagnosticUtility.ShouldUseActivity ?
ServiceModelActivity
.CreateBoundedActivity() : null)
441
ServiceModelActivity
.Start(activity, string.Format(SRServiceModel.ActivityConstructChannelFactory, typeof(TChannel).FullName), ActivityType.Construct);
467
using (
ServiceModelActivity
activity = DiagnosticUtility.ShouldUseActivity ?
ServiceModelActivity
.CreateBoundedActivity() : null)
471
ServiceModelActivity
.Start(activity, string.Format(SRServiceModel.ActivityConstructChannelFactory, typeof(TChannel).FullName), ActivityType.Construct);
486
using (
ServiceModelActivity
activity = DiagnosticUtility.ShouldUseActivity ?
ServiceModelActivity
.CreateBoundedActivity() : null)
490
ServiceModelActivity
.Start(activity, string.Format(SRServiceModel.ActivityConstructChannelFactory, typeof(TChannel).FullName), ActivityType.Construct);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (9)
689
ServiceModelActivity
serviceModelActivity = null;
693
serviceModelActivity =
ServiceModelActivity
.CreateActivity(true);
699
using (System.ServiceModel.Diagnostics.Activity boundOperation =
ServiceModelActivity
.BoundOperation(serviceModelActivity, true))
703
ServiceModelActivity
.Start(serviceModelActivity, string.Format(SRServiceModel.ActivityProcessAction, action), ActivityType.ProcessAction);
735
using (rpc.Activity = DiagnosticUtility.ShouldUseActivity ?
ServiceModelActivity
.CreateBoundedActivity() : null)
739
ServiceModelActivity
.Start(rpc.Activity, string.Format(SRServiceModel.ActivityProcessAction, action), ActivityType.ProcessAction);
793
using (
ServiceModelActivity
rpcActivity = sendResult.Rpc.Activity)
795
using (
ServiceModelActivity
.BoundOperation(rpcActivity, true))
1770
using (
ServiceModelActivity
.BoundOperation(Rpc.Activity))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelProxy.cs (5)
321
if (
ServiceModelActivity
.Current == null ||
322
ServiceModelActivity
.Current.ActivityType != ActivityType.Close)
334
using (
ServiceModelActivity
activity = string.IsNullOrEmpty(activityName) ? null :
ServiceModelActivity
.CreateBoundedActivity())
338
ServiceModelActivity
.Start(activity, activityName, activityType);
FrameworkFork\System.ServiceModel\System\ServiceModel\ClientBase.cs (6)
93
using (
ServiceModelActivity
activity = DiagnosticUtility.ShouldUseActivity ?
ServiceModelActivity
.CreateBoundedActivity() : null)
97
ServiceModelActivity
.Start(activity, string.Format(SRServiceModel.ActivityOpenClientBase, typeof(TChannel).FullName), ActivityType.OpenClient);
202
using (
ServiceModelActivity
activity = DiagnosticUtility.ShouldUseActivity ?
ServiceModelActivity
.CreateBoundedActivity() : null)
206
ServiceModelActivity
.Start(activity, string.Format(SRServiceModel.ActivityCloseClientBase, typeof(TChannel).FullName), ActivityType.Close);
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\ServiceModelActivity.cs (61)
15
private static
ServiceModelActivity
s_currentActivity;
19
private
ServiceModelActivity
_previousActivity = null;
54
_previousActivity =
ServiceModelActivity
.Current;
61
if (
ServiceModelActivity
.s_activityBoundaryDescription == null)
63
ServiceModelActivity
.s_activityBoundaryDescription = SRServiceModel.ActivityBoundary;
65
return
ServiceModelActivity
.s_activityBoundaryDescription;
74
internal
ServiceModelActivity
PreviousActivity
79
static internal Activity BoundOperation(
ServiceModelActivity
activity)
85
return
ServiceModelActivity
.BoundOperation(activity, false);
88
static internal Activity BoundOperation(
ServiceModelActivity
activity, bool addTransfer)
90
return activity == null ? null :
ServiceModelActivity
.BoundOperationCore(activity, addTransfer);
93
private static Activity BoundOperationCore(
ServiceModelActivity
activity, bool addTransfer)
105
retval.SetPreviousServiceModelActivity(
ServiceModelActivity
.Current);
107
ServiceModelActivity
.Current = activity;
112
internal static
ServiceModelActivity
CreateActivity()
118
return
ServiceModelActivity
.CreateActivity(Guid.NewGuid(), true);
121
internal static
ServiceModelActivity
CreateActivity(bool autoStop)
127
ServiceModelActivity
activity =
ServiceModelActivity
.CreateActivity(Guid.NewGuid(), true);
135
internal static
ServiceModelActivity
CreateActivity(bool autoStop, string activityName, ActivityType activityType)
141
ServiceModelActivity
activity =
ServiceModelActivity
.CreateActivity(autoStop);
142
ServiceModelActivity
.Start(activity, activityName, activityType);
146
internal static
ServiceModelActivity
CreateAsyncActivity()
152
ServiceModelActivity
activity =
ServiceModelActivity
.CreateActivity(true);
160
internal static
ServiceModelActivity
CreateBoundedActivity()
162
return
ServiceModelActivity
.CreateBoundedActivity(false);
165
internal static
ServiceModelActivity
CreateBoundedActivity(bool suspendCurrent)
171
ServiceModelActivity
activityToSuspend =
ServiceModelActivity
.Current;
172
ServiceModelActivity
retval =
ServiceModelActivity
.CreateActivity(true);
175
retval._activity = (TransferActivity)
ServiceModelActivity
.BoundOperation(retval, true);
189
internal static
ServiceModelActivity
CreateBoundedActivity(Guid activityId)
195
ServiceModelActivity
retval =
ServiceModelActivity
.CreateActivity(activityId, true);
198
retval._activity = (TransferActivity)
ServiceModelActivity
.BoundOperation(retval, true);
203
internal static
ServiceModelActivity
CreateBoundedActivityWithTransferInOnly(Guid activityId)
209
ServiceModelActivity
retval =
ServiceModelActivity
.CreateActivity(activityId, true);
216
retval._activity = (TransferActivity)
ServiceModelActivity
.BoundOperation(retval);
221
internal static
ServiceModelActivity
CreateLightWeightAsyncActivity(Guid activityId)
226
internal static
ServiceModelActivity
CreateActivity(Guid activityId)
232
ServiceModelActivity
retval = null;
239
ServiceModelActivity
.Current = retval;
244
internal static
ServiceModelActivity
CreateActivity(Guid activityId, bool autoStop)
250
ServiceModelActivity
retval =
ServiceModelActivity
.CreateActivity(activityId);
258
internal static
ServiceModelActivity
Current
260
get { return
ServiceModelActivity
.s_currentActivity; }
261
private set {
ServiceModelActivity
.s_currentActivity = value; }
280
ServiceModelActivity
.Current != null)
282
ServiceModelActivity
.Current.Resume();
287
ServiceModelActivity
.Current = _previousActivity;
327
static internal void Start(
ServiceModelActivity
activity, string activityName, ActivityType activityType)
345
(!_isAsync || (_isAsync && newStopCount >=
ServiceModelActivity
.AsyncStopCount)))
351
static internal void Stop(
ServiceModelActivity
activity)
386
private
ServiceModelActivity
_previousActivity = null;
403
internal void SetPreviousServiceModelActivity(
ServiceModelActivity
previous)
431
ServiceModelActivity
.Current = _previousActivity;
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\TraceAsyncResult.cs (3)
23
this.CallbackActivity =
ServiceModelActivity
.Current;
31
public
ServiceModelActivity
CallbackActivity
49
using (
ServiceModelActivity
.BoundOperation(thisPtr.CallbackActivity))
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\TraceUtility.cs (26)
81
internal static
ServiceModelActivity
ExtractActivity(Message message)
83
ServiceModelActivity
retval = null;
93
retval = property as
ServiceModelActivity
;
106
ServiceModelActivity
activity = ExtractActivity(message);
123
internal static
ServiceModelActivity
ExtractAndRemoveActivity(Message message)
125
ServiceModelActivity
retval = TraceUtility.ExtractActivity(message);
137
ServiceModelActivity
activity =
ServiceModelActivity
.Current;
140
ServiceModelActivity
incomingActivity = TraceUtility.ExtractActivity(message);
143
using (
ServiceModelActivity
.BoundOperation(incomingActivity))
164
ServiceModelActivity
activity =
ServiceModelActivity
.Current;
182
internal static void SetActivity(Message message,
ServiceModelActivity
activity)
455
ServiceModelActivity
activity = null;
457
if (
ServiceModelActivity
.Current != null)
459
if ((
ServiceModelActivity
.Current.Id == guid) ||
460
(
ServiceModelActivity
.Current.ActivityType == ActivityType.ProcessAction))
462
activity =
ServiceModelActivity
.Current;
465
else if (
ServiceModelActivity
.Current.PreviousActivity != null &&
466
ServiceModelActivity
.Current.PreviousActivity.Id == guid)
468
activity =
ServiceModelActivity
.Current.PreviousActivity;
475
activity =
ServiceModelActivity
.CreateActivity(guid);
485
ServiceModelActivity
.Start(activity, string.Format(SRServiceModel.ActivityProcessAction, message.Headers.Action), ActivityType.ProcessAction);
579
using (
ServiceModelActivity
activity =
ServiceModelActivity
.CreateBoundedActivity())
581
ServiceModelActivity
.Start(activity, SRServiceModel.ActivityCallback, ActivityType.ExecuteUserCode);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelHandler.cs (2)
688
ServiceModelActivity
activity = DiagnosticUtility.ShouldUseActivity ? TraceUtility.ExtractActivity(request.RequestMessage) : null;
689
using (
ServiceModelActivity
.BoundOperation(activity))
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (8)
474
ServiceModelActivity
.Current != null &&
475
ServiceModelActivity
.Current.ActivityType == ActivityType.ProcessAction)
477
ServiceModelActivity
.Current.Suspend();
813
private
ServiceModelActivity
_activity;
879
ServiceModelActivity
replyActivity = DiagnosticUtility.ShouldUseActivity ?
881
using (
ServiceModelActivity
.BoundOperation(replyActivity))
963
ServiceModelActivity
replyActivity = DiagnosticUtility.ShouldUseActivity ?
966
using (
ServiceModelActivity
.BoundOperation(replyActivity))
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\MessageRpc.cs (8)
25
internal
ServiceModelActivity
Activity;
287
using (
ServiceModelActivity
.BoundOperation(this.Activity))
413
using (
ServiceModelActivity
.BoundOperation(this.Activity))
586
using (
ServiceModelActivity
.BoundOperation(_rpc.Activity, true))
613
private
ServiceModelActivity
_activity;
616
public MessageRpcInvokeNotification(
ServiceModelActivity
activity, ChannelHandler handler)
626
using (
ServiceModelActivity
.BoundOperation(_activity))
635
using (
ServiceModelActivity
.BoundOperation(_activity))
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ProxyRpc.cs (1)
15
internal
ServiceModelActivity
Activity;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\SyncMethodInvoker.cs (3)
110
ServiceModelActivity
activity = null;
114
activity =
ServiceModelActivity
.CreateBoundedActivity(true);
139
ServiceModelActivity
.Start(activity, string.Format(SRServiceModel.ActivityExecuteMethod, _method.DeclaringType.FullName, _method.Name), ActivityType.ExecuteUserCode);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (3)
169
ServiceModelActivity
activity = null;
173
activity =
ServiceModelActivity
.CreateBoundedActivity(true);
198
ServiceModelActivity
.Start(activity,
FrameworkFork\System.ServiceModel\System\ServiceModel\DuplexChannelFactory.cs (12)
63
using (
ServiceModelActivity
activity = DiagnosticUtility.ShouldUseActivity ?
ServiceModelActivity
.CreateBoundedActivity() : null)
67
ServiceModelActivity
.Start(activity, string.Format(SRServiceModel.ActivityConstructChannelFactory, TraceUtility.CreateSourceString(this)), ActivityType.Construct);
89
using (
ServiceModelActivity
activity = DiagnosticUtility.ShouldUseActivity ?
ServiceModelActivity
.CreateBoundedActivity() : null)
93
ServiceModelActivity
.Start(activity, string.Format(SRServiceModel.ActivityConstructChannelFactory, TraceUtility.CreateSourceString(this)), ActivityType.Construct);
125
using (
ServiceModelActivity
activity = DiagnosticUtility.ShouldUseActivity ?
ServiceModelActivity
.CreateBoundedActivity() : null)
129
ServiceModelActivity
.Start(activity, string.Format(SRServiceModel.ActivityConstructChannelFactory, TraceUtility.CreateSourceString(this)), ActivityType.Construct);
150
using (
ServiceModelActivity
activity = DiagnosticUtility.ShouldUseActivity ?
ServiceModelActivity
.CreateBoundedActivity() : null)
154
ServiceModelActivity
.Start(activity, string.Format(SRServiceModel.ActivityConstructChannelFactory, TraceUtility.CreateSourceString(this)), ActivityType.Construct);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (1)
1076
using (thisResult.CallbackActivity == null ? null :
ServiceModelActivity
.BoundOperation(thisResult.CallbackActivity))