2 instantiations of ServiceModelActivity
System.ServiceModel (2)
System\ServiceModel\Diagnostics\ServiceModelActivity.cs (2)
228return new ServiceModelActivity(activityId); 240retval = new ServiceModelActivity(activityId);
370 references to ServiceModelActivity
System.ServiceModel (370)
System\ServiceModel\Administration\WbemProvider.cs (5)
217using (ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity ? 218ServiceModelActivity.CreateActivity(true, SR.GetString(SR.WmiGetObject, string.IsNullOrEmpty(objectPath) ? string.Empty : objectPath), ActivityType.WmiGetObject) : null) 336using (ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity ? ServiceModelActivity.CreateBoundedActivity() : null) 345ServiceModelActivity.Start(activity, SR.GetString(SR.WmiPutInstance, string.IsNullOrEmpty(className) ? string.Empty : className), ActivityType.WmiPutInstance);
System\ServiceModel\ChannelFactory.cs (15)
548using (ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity ? ServiceModelActivity.CreateBoundedActivity() : null) 552ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityConstructChannelFactory, typeof(TChannel).FullName), ActivityType.Construct); 568using (ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity ? ServiceModelActivity.CreateBoundedActivity() : null) 572ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityConstructChannelFactory, typeof(TChannel).FullName), ActivityType.Construct); 598using (ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity ? ServiceModelActivity.CreateBoundedActivity() : null) 602ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityConstructChannelFactory, typeof(TChannel).FullName), ActivityType.Construct); 617using (ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity ? ServiceModelActivity.CreateBoundedActivity() : null) 621ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityConstructChannelFactory, typeof(TChannel).FullName), ActivityType.Construct); 692using (ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity && this.TraceOpenAndClose ? ServiceModelActivity.CreateBoundedActivity() : null) 696ServiceModelActivity.Start(activity, this.OpenActivityName, this.OpenActivityType);
System\ServiceModel\Channels\CommunicationObject.cs (7)
415ServiceModelActivity CreateCloseActivity() 417ServiceModelActivity retval = null; 418retval = ServiceModelActivity.CreateBoundedActivity(); 421ServiceModelActivity.Start(retval, this.CloseActivityName, ActivityType.Close); 570using (ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity && this.TraceOpenAndClose ? ServiceModelActivity.CreateBoundedActivity() : null) 574ServiceModelActivity.Start(activity, this.OpenActivityName, this.OpenActivityType);
System\ServiceModel\Channels\ConnectionOrientedTransportChannelFactory.cs (2)
91ServiceModelActivity.Current != null && ServiceModelActivity.Current.ActivityType == ActivityType.OpenClient);
System\ServiceModel\Channels\DatagramAdapter.cs (3)
367ServiceModelActivity activity; 377activity = ServiceModelActivity.Current; 444using (ServiceModelActivity.BoundOperation(this.activity))
System\ServiceModel\Channels\HttpChannelFactory.cs (11)
917ServiceModelActivity activity = null; 931internal ServiceModelActivity Activity 1055using (ServiceModelActivity.BoundOperation(this.activity)) 1062ServiceModelActivity.Stop(this.activity); 1068using (ServiceModelActivity.BoundOperation(this.activity)) 1072ServiceModelActivity.Stop(this.activity); 1077using (ServiceModelActivity.BoundOperation(this.activity)) 1084ServiceModelActivity.Stop(this.activity); 1091this.activity = ServiceModelActivity.CreateActivity(); 1096ServiceModelActivity.Start(this.activity, SR.GetString(SR.ActivityReceiveBytes, this.RemoteAddress.Uri.ToString()), ActivityType.ReceiveBytes); 1657using (ServiceModelActivity.BoundOperation(this.channel.Activity))
System\ServiceModel\Channels\HttpChannelHelpers.cs (9)
487ServiceModelActivity activity = null; 489((ServiceModelActivity.Current == null) || 490(ServiceModelActivity.Current.ActivityType != ActivityType.ProcessAction))) 492activity = ServiceModelActivity.CreateBoundedActivity(true); 499ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityProcessingMessage, TraceUtility.RetrieveMessageNumber()), ActivityType.ProcessMessage); 754using (DiagnosticUtility.ShouldUseActivity ? ServiceModelActivity.BoundOperation(this.CallbackActivity) : null) 756using (ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity ? ServiceModelActivity.CreateBoundedActivity(true) : null) 760ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityProcessingMessage, TraceUtility.RetrieveMessageNumber()), ActivityType.ProcessMessage);
System\ServiceModel\Channels\HttpPipeline.cs (1)
905using (DiagnosticUtility.ShouldUseActivity ? ServiceModelActivity.BoundOperation(this.CallbackActivity) : null)
System\ServiceModel\Channels\HttpTransportManager.cs (4)
120protected void StartReceiveBytesActivity(ServiceModelActivity activity, Uri requestUri) 123ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityReceiveBytes, requestUri.ToString()), ActivityType.ReceiveBytes); 241internal ServiceModelActivity activity; 243public ActivityHolder(ServiceModelActivity activity, HttpRequestContext requestContext)
System\ServiceModel\Channels\MsmqDiagnostics.cs (16)
48public static ServiceModelActivity StartListenAtActivity(MsmqReceiveHelper receiver) 50ServiceModelActivity activity = receiver.Activity; 53activity = ServiceModelActivity.CreateActivity(true); 58ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityListenAt, receiver.ListenUri.ToString()), ActivityType.ListenAt); 73return ServiceModelActivity.BoundOperation(receiver.Activity); 78if (DiagnosticUtility.ShouldUseActivity && null != ServiceModelActivity.Current && ActivityType.ProcessAction != ServiceModelActivity.Current.ActivityType) 80return ServiceModelActivity.BoundOperation(receiver.Activity); 89public static ServiceModelActivity BoundDecodeOperation() 91ServiceModelActivity activity = null; 94activity = ServiceModelActivity.CreateBoundedActivity(true); 95ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityProcessingMessage, TraceUtility.RetrieveMessageNumber()), ActivityType.ProcessMessage); 100public static ServiceModelActivity BoundReceiveBytesOperation() 102ServiceModelActivity activity = null; 105activity = ServiceModelActivity.CreateBoundedActivityWithTransferInOnly(Guid.NewGuid()); 106ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityReceiveBytes, TraceUtility.RetrieveMessageNumber()), ActivityType.ReceiveBytes);
System\ServiceModel\Channels\MsmqReceiveHelper.cs (4)
61ServiceModelActivity activity; 77internal ServiceModelActivity Activity 146using (ServiceModelActivity.BoundOperation(this.Activity)) 151ServiceModelActivity.Stop(this.activity);
System\ServiceModel\Channels\SecurityChannelFactory.cs (5)
18using ServiceModelActivity = System.ServiceModel.Diagnostics.ServiceModelActivity; 630ServiceModelActivity replyActivity = TraceUtility.ExtractActivity(reply); 636using (ServiceModelActivity.BoundOperation(replyActivity)) 646ServiceModelActivity activity = correlationState == null ? null : correlationState.Activity; 647using (ServiceModelActivity.BoundOperation(activity))
System\ServiceModel\Channels\ServiceChannel.cs (9)
747ServiceModelActivity serviceModelActivity = null; 751serviceModelActivity = ServiceModelActivity.CreateActivity(true); 757using (Activity boundOperation = ServiceModelActivity.BoundOperation(serviceModelActivity, true)) 761ServiceModelActivity.Start(serviceModelActivity, SR.GetString(SR.ActivityProcessAction, action), ActivityType.ProcessAction); 793using (rpc.Activity = DiagnosticUtility.ShouldUseActivity ? ServiceModelActivity.CreateBoundedActivity() : null) 797ServiceModelActivity.Start(rpc.Activity, SR.GetString(SR.ActivityProcessAction, action), ActivityType.ProcessAction); 851using (ServiceModelActivity rpcActivity = sendResult.Rpc.Activity) 853using (ServiceModelActivity.BoundOperation(rpcActivity, true)) 2009using (ServiceModelActivity.BoundOperation(this.Rpc.Activity))
System\ServiceModel\Channels\ServiceChannelProxy.cs (5)
304if (ServiceModelActivity.Current == null || 305ServiceModelActivity.Current.ActivityType != ActivityType.Close) 317using (ServiceModelActivity activity = string.IsNullOrEmpty(activityName) ? null : ServiceModelActivity.CreateBoundedActivity()) 321ServiceModelActivity.Start(activity, activityName, activityType);
System\ServiceModel\Channels\SessionConnectionReader.cs (16)
1048using (ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity ? ServiceModelActivity.CreateBoundedActivity(true) : null) 1052ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityProcessingMessage, TraceUtility.RetrieveMessageNumber()), ActivityType.ProcessMessage); 1141ServiceModelActivity.Current != null && 1142ServiceModelActivity.Current.ActivityType == ActivityType.ProcessAction) 1144ServiceModelActivity.Current.Resume(); 1539if ((ServiceModelActivity.Current != null) && 1540(ServiceModelActivity.Current.ActivityType == ActivityType.ProcessAction)) 1544else if ((ServiceModelActivity.Current != null) && 1545(ServiceModelActivity.Current.PreviousActivity != null) && 1546(ServiceModelActivity.Current.PreviousActivity.ActivityType == ActivityType.ProcessAction)) 1548retval = ServiceModelActivity.BoundOperation(ServiceModelActivity.Current.PreviousActivity); 1552ServiceModelActivity activity = ServiceModelActivity.CreateBoundedActivity(true); 1553ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityProcessingMessage, TraceUtility.RetrieveMessageNumber()), ActivityType.ProcessMessage);
System\ServiceModel\Channels\SharedHttpTransportManager.cs (3)
284using (DiagnosticUtility.ShouldUseActivity ? ServiceModelActivity.BoundOperation(this.Activity) : null) 286ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity ? ServiceModelActivity.CreateBoundedActivityWithTransferInOnly(listenerContext.Request.RequestTraceIdentifier) : null;
System\ServiceModel\Channels\SingletonConnectionReader.cs (3)
1234using (ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity ? ServiceModelActivity.CreateBoundedActivity(true) : null) 1238ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityProcessingMessage, TraceUtility.RetrieveMessageNumber()), ActivityType.ProcessMessage);
System\ServiceModel\Channels\TracingConnection.cs (21)
15ServiceModelActivity activity; 19public TracingConnection(IConnection connection, ServiceModelActivity activity) 29ServiceModelActivity.CreateActivity(DiagnosticTraceBase.ActivityId, false) : 30ServiceModelActivity.CreateActivity(); 45using (ServiceModelActivity.BoundOperation(this.activity)) 75using (ServiceModelActivity.BoundOperation(this.activity, true)) 91using (ServiceModelActivity.BoundOperation(this.activity, true)) 99using (ServiceModelActivity.BoundOperation(this.activity)) 101ServiceModelActivity.Start(this.activity, SR.GetString(SR.ActivityReceiveBytes, name), ActivityType.ReceiveBytes); 107using (ServiceModelActivity.BoundOperation(this.activity)) 109ServiceModelActivity.Start(this.activity, SR.GetString(SR.ActivityReceiveBytes, uri.ToString()), ActivityType.ReceiveBytes); 115using (ServiceModelActivity.BoundOperation(this.activity)) 123using (ServiceModelActivity.BoundOperation(this.activity)) 131using (ServiceModelActivity.BoundOperation(this.activity)) 139using (ServiceModelActivity.BoundOperation(this.activity)) 147using (ServiceModelActivity.BoundOperation(this.activity)) 161using (ServiceModelActivity.BoundOperation(this.activity)) 188using (ServiceModelActivity.BoundOperation(this.activity, true)) 198ServiceModelActivity activity; 200internal TracingConnectionState(WaitCallback callback, ServiceModelActivity activity, object state) 209using (ServiceModelActivity.BoundOperation(this.activity))
System\ServiceModel\Channels\TracingConnectionInitiator.cs (5)
18ServiceModelActivity activity; 25this.activity = ServiceModelActivity.CreateActivity(DiagnosticTraceBase.ActivityId); 31using (ServiceModelActivity.BoundOperation(this.activity)) 46using (ServiceModelActivity.BoundOperation(this.activity)) 55using (ServiceModelActivity.BoundOperation(this.activity))
System\ServiceModel\Channels\TracingConnectionListener.cs (13)
15ServiceModelActivity activity; 31this.activity = ServiceModelActivity.CreateActivity(DiagnosticTraceBase.ActivityId, false); 39this.activity = ServiceModelActivity.CreateActivity(); 46ServiceModelActivity.Start(this.activity, SR.GetString(SR.ActivityListenAt, traceStartInfo), ActivityType.ListenAt); 51this.activity = ServiceModelActivity.CreateActivity(DiagnosticTraceBase.ActivityId, false); 61using (ServiceModelActivity.BoundOperation(this.activity)) 69using (ServiceModelActivity.BoundOperation(this.activity)) 77using (ServiceModelActivity.BoundOperation(this.activity)) 79ServiceModelActivity activity = ServiceModelActivity.CreateActivity(); 87using (ServiceModelActivity.BoundOperation(activity)) 89ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityReceiveBytes, this.activity.Name), ActivityType.ReceiveBytes); 103using (ServiceModelActivity.BoundOperation(this.activity))
System\ServiceModel\Channels\TransportChannelListener.cs (2)
42ServiceModelActivity activity = null; 142internal ServiceModelActivity Activity
System\ServiceModel\Channels\TransportManager.cs (8)
16ServiceModelActivity activity; 20protected ServiceModelActivity Activity 39using (ServiceModelActivity.BoundOperation(this.Activity)) 55using (ServiceModelActivity.BoundOperation(this.Activity, true)) 109this.activity = ServiceModelActivity.CreateActivity(true); 116ServiceModelActivity.Start(this.Activity, SR.GetString(SR.ActivityListenAt, channelListener.Uri.ToString()), ActivityType.ListenAt); 121using (ServiceModelActivity.BoundOperation(this.Activity)) 341using (ServiceModelActivity.BoundOperation(this.CallbackActivity))
System\ServiceModel\ClientBase.cs (6)
353using (ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity ? ServiceModelActivity.CreateBoundedActivity() : null) 357ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityOpenClientBase, typeof(TChannel).FullName), ActivityType.OpenClient); 599using (ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity ? ServiceModelActivity.CreateBoundedActivity() : null) 603ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityCloseClientBase, typeof(TChannel).FullName), ActivityType.Close);
System\ServiceModel\ComIntegration\ComPlusSynchronizationContext.cs (3)
69ServiceModelActivity activity = null; 84activity = ServiceModelActivity.CreateBoundedActivity(guidLogicalThreadID); 86ServiceModelActivity.Start(activity, SR.GetString(SR.TransferringToComplus, guidLogicalThreadID.ToString()), ActivityType.TransferToComPlus);
System\ServiceModel\Configuration\ConfigurationChannelFactory.cs (3)
17using (ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity ? ServiceModelActivity.CreateBoundedActivity() : null) 21ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityConstructChannelFactory, typeof(TChannel).FullName), ActivityType.Construct);
System\ServiceModel\Configuration\ConfigurationDuplexChannelFactory.cs (3)
17using (ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity ? ServiceModelActivity.CreateBoundedActivity() : null) 21ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityConstructChannelFactory, TraceUtility.CreateSourceString(this)), ActivityType.Construct);
System\ServiceModel\Diagnostics\MessageLogger.cs (2)
352ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity ? TraceUtility.ExtractActivity(message) : null; 353using (ServiceModelActivity.BoundOperation(activity))
System\ServiceModel\Diagnostics\ServiceModelActivity.cs (66)
20static ServiceModelActivity currentActivity; 24ServiceModelActivity previousActivity = null; 59this.previousActivity = ServiceModelActivity.Current; 66if (ServiceModelActivity.activityBoundaryDescription == null) 68ServiceModelActivity.activityBoundaryDescription = TraceSR.GetString(TraceSR.ActivityBoundary); 70return ServiceModelActivity.activityBoundaryDescription; 79internal ServiceModelActivity PreviousActivity 84static internal Activity BoundOperation(ServiceModelActivity activity) 90return ServiceModelActivity.BoundOperation(activity, false); 93static internal Activity BoundOperation(ServiceModelActivity activity, bool addTransfer) 95return activity == null ? null : ServiceModelActivity.BoundOperationCore(activity, addTransfer); 98static Activity BoundOperationCore(ServiceModelActivity activity, bool addTransfer) 110retval.SetPreviousServiceModelActivity(ServiceModelActivity.Current); 112ServiceModelActivity.Current = activity; 117internal static ServiceModelActivity CreateActivity() 123return ServiceModelActivity.CreateActivity(Guid.NewGuid(), true); 126internal static ServiceModelActivity CreateActivity(bool autoStop) 132ServiceModelActivity activity = ServiceModelActivity.CreateActivity(Guid.NewGuid(), true); 140internal static ServiceModelActivity CreateActivity(bool autoStop, string activityName, ActivityType activityType) 146ServiceModelActivity activity = ServiceModelActivity.CreateActivity(autoStop); 147ServiceModelActivity.Start(activity, activityName, activityType); 151internal static ServiceModelActivity CreateAsyncActivity() 157ServiceModelActivity activity = ServiceModelActivity.CreateActivity(true); 165internal static ServiceModelActivity CreateBoundedActivity() 167return ServiceModelActivity.CreateBoundedActivity(false); 170internal static ServiceModelActivity CreateBoundedActivity(bool suspendCurrent) 176ServiceModelActivity activityToSuspend = ServiceModelActivity.Current; 177ServiceModelActivity retval = ServiceModelActivity.CreateActivity(true); 180retval.activity = (TransferActivity)ServiceModelActivity.BoundOperation(retval, true); 194internal static ServiceModelActivity CreateBoundedActivity(Guid activityId) 200ServiceModelActivity retval = ServiceModelActivity.CreateActivity(activityId, true); 203retval.activity = (TransferActivity)ServiceModelActivity.BoundOperation(retval, true); 208internal static ServiceModelActivity CreateBoundedActivityWithTransferInOnly(Guid activityId) 214ServiceModelActivity retval = ServiceModelActivity.CreateActivity(activityId, true); 221retval.activity = (TransferActivity)ServiceModelActivity.BoundOperation(retval); 226internal static ServiceModelActivity CreateLightWeightAsyncActivity(Guid activityId) 231internal static ServiceModelActivity CreateActivity(Guid activityId) 237ServiceModelActivity retval = null; 244ServiceModelActivity.Current = retval; 249internal static ServiceModelActivity CreateActivity(Guid activityId, bool autoStop) 255ServiceModelActivity retval = ServiceModelActivity.CreateActivity(activityId); 263internal static ServiceModelActivity Current 265get { return ServiceModelActivity.currentActivity; } 266private set { ServiceModelActivity.currentActivity = value; } 285ServiceModelActivity.Current != null) 287ServiceModelActivity.Current.Resume(); 292ServiceModelActivity.Current = this.previousActivity; 333static internal void Start(ServiceModelActivity activity, string activityName, ActivityType activityType) 352(!this.isAsync || (this.isAsync && newStopCount >= ServiceModelActivity.AsyncStopCount))) 359static internal void Stop(ServiceModelActivity activity) 391TraceUtility.TraceEventNoCheck(type, TraceCode.ActivityBoundary, ServiceModelActivity.ActivityBoundaryDescription, null, ServiceModelActivity.ActivityBoundaryDescription, (Exception)null); 400values["ActivityType"] = ServiceModelActivity.ActivityTypeNames[(int)this.activityType]; 410values["ActivityType"] = ServiceModelActivity.ActivityTypeNames[(int)this.activityType]; 411TraceUtility.TraceEventNoCheck(type, TraceCode.ActivityBoundary, ServiceModelActivity.ActivityBoundaryDescription, new DictionaryTraceRecord(values), null, null, this.Id); 461ServiceModelActivity previousActivity = null; 495internal void SetPreviousServiceModelActivity(ServiceModelActivity previous) 523ServiceModelActivity.Current = this.previousActivity;
System\ServiceModel\Diagnostics\TraceAsyncResult.cs (4)
19this.CallbackActivity = ServiceModelActivity.CreateLightWeightAsyncActivity(Trace.CorrelationManager.ActivityId); 24this.CallbackActivity = ServiceModelActivity.Current; 32public ServiceModelActivity CallbackActivity 51using (ServiceModelActivity.BoundOperation(thisPtr.CallbackActivity))
System\ServiceModel\Diagnostics\TraceUtility.cs (30)
469ServiceModelActivity callbackActivity = ServiceModelActivity.Current; 474using (ServiceModelActivity.BoundOperation(callbackActivity)) 540internal static ServiceModelActivity ExtractActivity(Message message) 542ServiceModelActivity retval = null; 552retval = property as ServiceModelActivity; 559internal static ServiceModelActivity ExtractActivity(RequestContext request) 583ServiceModelActivity activity = ExtractActivity(message); 600internal static ServiceModelActivity ExtractAndRemoveActivity(Message message) 602ServiceModelActivity retval = TraceUtility.ExtractActivity(message); 614ServiceModelActivity activity = ServiceModelActivity.Current; 617ServiceModelActivity incomingActivity = TraceUtility.ExtractActivity(message); 620using (ServiceModelActivity.BoundOperation(incomingActivity)) 641ServiceModelActivity activity = ServiceModelActivity.Current; 659internal static void SetActivity(Message message, ServiceModelActivity activity) 1114ServiceModelActivity activity = null; 1116if (ServiceModelActivity.Current != null) 1118if ((ServiceModelActivity.Current.Id == guid) || 1119(ServiceModelActivity.Current.ActivityType == ActivityType.ProcessAction)) 1121activity = ServiceModelActivity.Current; 1124else if (ServiceModelActivity.Current.PreviousActivity != null && 1125ServiceModelActivity.Current.PreviousActivity.Id == guid) 1127activity = ServiceModelActivity.Current.PreviousActivity; 1134activity = ServiceModelActivity.CreateActivity(guid); 1144ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityProcessAction, message.Headers.Action), ActivityType.ProcessAction); 1238using (ServiceModelActivity activity = ServiceModelActivity.CreateBoundedActivity()) 1240ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityCallback), ActivityType.ExecuteUserCode);
System\ServiceModel\Dispatcher\AsyncMethodInvoker.cs (11)
62internal static void CreateActivityInfo(ref ServiceModelActivity activity, ref Activity boundActivity) 66activity = ServiceModelActivity.CreateAsyncActivity(); 68boundActivity = ServiceModelActivity.BoundOperation(activity, true); 107ServiceModelActivity activity = null; 133ServiceModelActivity.Start(activity, activityName, ActivityType.ExecuteUserCode); 158ServiceModelActivity.Stop(activity); 171internal static void GetActivityInfo(ref ServiceModelActivity activity, ref Activity boundOperation) 191activity = activityInfo as ServiceModelActivity; 192boundOperation = ServiceModelActivity.BoundOperation(activity, true); 216ServiceModelActivity activity = null; 241ServiceModelActivity.Stop(activity);
System\ServiceModel\Dispatcher\ChannelHandler.cs (2)
948ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity ? TraceUtility.ExtractActivity(request) : null; 950using (ServiceModelActivity.BoundOperation(activity))
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (8)
484ServiceModelActivity.Current != null && 485ServiceModelActivity.Current.ActivityType == ActivityType.ProcessAction) 487ServiceModelActivity.Current.Suspend(); 876ServiceModelActivity activity; 943ServiceModelActivity replyActivity = DiagnosticUtility.ShouldUseActivity ? 945using (ServiceModelActivity.BoundOperation(replyActivity)) 1029ServiceModelActivity replyActivity = DiagnosticUtility.ShouldUseActivity ? 1032using (ServiceModelActivity.BoundOperation(replyActivity))
System\ServiceModel\Dispatcher\MessageRpc.cs (8)
32internal ServiceModelActivity Activity; 436using (ServiceModelActivity.BoundOperation(this.Activity)) 597using (ServiceModelActivity.BoundOperation(this.Activity)) 803using (ServiceModelActivity.BoundOperation(this.rpc.Activity, true)) 830ServiceModelActivity activity; 833public MessageRpcInvokeNotification(ServiceModelActivity activity, ChannelHandler handler) 843using (ServiceModelActivity.BoundOperation(this.activity)) 852using (ServiceModelActivity.BoundOperation(this.activity))
System\ServiceModel\Dispatcher\ProxyRpc.cs (1)
16internal ServiceModelActivity Activity;
System\ServiceModel\Dispatcher\SyncMethodInvoker.cs (3)
137ServiceModelActivity activity = null; 141activity = ServiceModelActivity.CreateBoundedActivity(true); 166ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityExecuteMethod, this.method.DeclaringType.FullName, this.method.Name), ActivityType.ExecuteUserCode);
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (5)
83ServiceModelActivity activity = null; 168ServiceModelActivity.Stop(activity); 200ServiceModelActivity activity = null; 211ServiceModelActivity.Start(activity, activityName, ActivityType.ExecuteUserCode); 252ServiceModelActivity.Stop(activity);
System\ServiceModel\DuplexChannelFactory.cs (12)
72using (ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity ? ServiceModelActivity.CreateBoundedActivity() : null) 76ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityConstructChannelFactory, TraceUtility.CreateSourceString(this)), ActivityType.Construct); 98using (ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity ? ServiceModelActivity.CreateBoundedActivity() : null) 102ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityConstructChannelFactory, TraceUtility.CreateSourceString(this)), ActivityType.Construct); 134using (ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity ? ServiceModelActivity.CreateBoundedActivity() : null) 138ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityConstructChannelFactory, TraceUtility.CreateSourceString(this)), ActivityType.Construct); 159using (ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity ? ServiceModelActivity.CreateBoundedActivity() : null) 163ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityConstructChannelFactory, TraceUtility.CreateSourceString(this)), ActivityType.Construct);
System\ServiceModel\Security\SecurityProtocolCorrelationState.cs (3)
18ServiceModelActivity activity; 23this.activity = DiagnosticUtility.ShouldUseActivity ? ServiceModelActivity.Current : null; 37internal ServiceModelActivity Activity
System\ServiceModel\Security\SecuritySessionClientSettings.cs (23)
636using (ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity ? 637ServiceModelActivity.CreateBoundedActivity() : null) 641ServiceModelActivity.Start(activity, SR.GetString(SR.ActivitySecuritySetup), ActivityType.SecuritySetup); 652ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity ? 653ServiceModelActivity.CreateAsyncActivity() : null; 654using (ServiceModelActivity.BoundOperation(activity, true)) 658ServiceModelActivity.Start(activity, SR.GetString(SR.ActivitySecuritySetup), ActivityType.SecuritySetup); 852using (ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity ? 853ServiceModelActivity.CreateBoundedActivity() : null) 857ServiceModelActivity.Start(activity, SR.GetString(SR.ActivitySecurityClose), ActivityType.SecuritySetup); 1249using (ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity ? 1250ServiceModelActivity.CreateBoundedActivity() : null) 1254ServiceModelActivity.Start(activity, SR.GetString(SR.ActivitySecurityRenew), ActivityType.SecuritySetup); 1431using (ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity ? 1432ServiceModelActivity.CreateBoundedActivity() : null) 1436ServiceModelActivity.Start(activity, SR.GetString(SR.ActivitySecurityClose), ActivityType.SecuritySetup); 1460using (ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity ? 1461ServiceModelActivity.CreateAsyncActivity() : null) 1465ServiceModelActivity.Start(activity, SR.GetString(SR.ActivitySecurityClose), ActivityType.SecuritySetup); 2025using (ServiceModelActivity.BoundOperation(thisAsyncResult.CallbackActivity)) 2063ServiceModelActivity.Stop(((OpenAsyncResult)result).CallbackActivity); 2227ServiceModelActivity.Stop(thisResult.CallbackActivity); 2498using (thisResult.CallbackActivity == null ? null : ServiceModelActivity.BoundOperation(thisResult.CallbackActivity))
System\ServiceModel\Security\SecuritySessionServerSettings.cs (3)
2631ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity && 2635using (ServiceModelActivity.BoundOperation(activity)) 3075ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity ? TraceUtility.ExtractActivity(message) : null;
System\ServiceModel\Security\SecurityUtils.cs (1)
2453using (thisResult.CallbackActivity == null ? null : ServiceModelActivity.BoundOperation(thisResult.CallbackActivity))
System\ServiceModel\ServiceHost.cs (6)
1672using (ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity ? ServiceModelActivity.CreateBoundedActivity() : null) 1676ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityConstructServiceHost, serviceType.FullName), ActivityType.Construct); 1692using (ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity ? ServiceModelActivity.CreateBoundedActivity() : null) 1696ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityConstructServiceHost, serviceType.FullName), ActivityType.Construct);