8 writes to Current
dotnet-svcutil-lib (8)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelProxy.cs (4)
177OperationContext.Current = asyncResult.AsyncState as OperationContext; 189OperationContext.Current = originalOperationContext; 219OperationContext.Current = asyncResult.AsyncState as OperationContext; 231OperationContext.Current = originalOperationContext;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelHandler.cs (2)
1111OperationContext.Current = currentOperationContext; 1138OperationContext.Current = existingOperationContext;
FrameworkFork\System.ServiceModel\System\ServiceModel\OperationContextScope.cs (2)
44OperationContext.Current = _currentContext; 56OperationContext.Current = _originalContext;
38 references to Current
dotnet-svcutil-lib (38)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (5)
548OperationContext context = OperationContext.Current; 757ConcurrencyBehavior.UnlockInstanceBeforeCallout(OperationContext.Current); 778ConcurrencyBehavior.LockInstanceAfterCallout(OperationContext.Current); 963OperationContext operationContext = OperationContext.Current; 1666_operationContext = OperationContext.Current;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelFactory.cs (1)
354OperationContext current = OperationContext.Current;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelProxy.cs (4)
176OperationContext originalOperationContext = OperationContext.Current; 195IAsyncResult ar = ServiceChannel.BeginCall(channel, operation, inputParameters, new AsyncCallback(endCallDelegate), OperationContext.Current); 218OperationContext originalOperationContext = OperationContext.Current; 237IAsyncResult ar = ServiceChannel.BeginCall(channel, operation, inputParameters, new AsyncCallback(endCallDelegate), OperationContext.Current);
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\TraceUtility.cs (11)
424context = OperationContext.Current; 494if (OperationContext.Current != null && activity != null) 496OperationContext.Current.OutgoingMessageProperties[TraceUtility.AsyncOperationActivityKey] = activity; 503if (OperationContext.Current != null && OperationContext.Current.OutgoingMessageProperties.TryGetValue(TraceUtility.AsyncOperationActivityKey, out data)) 505OperationContext.Current.OutgoingMessageProperties.Remove(TraceUtility.AsyncOperationActivityKey); 512if (OperationContext.Current != null) 514OperationContext.Current.OutgoingMessageProperties[TraceUtility.AsyncOperationStartTimeKey] = new EventTraceActivityTimeProperty(eventTraceActivity, startTime); 523if (OperationContext.Current != null && OperationContext.Current.OutgoingMessageProperties.TryGetValue<EventTraceActivityTimeProperty>(TraceUtility.AsyncOperationStartTimeKey, out data)) 525OperationContext.Current.OutgoingMessageProperties.Remove(TraceUtility.AsyncOperationStartTimeKey);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelHandler.cs (1)
1107OperationContext existingOperationContext = OperationContext.Current;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DispatchRuntime.cs (4)
383ServiceChannel serviceChannel = OperationContext.Current.InternalServiceChannel; 384OperationContext.Current.OperationCompleted += 412OperationContext.Current.RequestContext.Close(); 413OperationContext.Current.RequestContext = null;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\SyncMethodInvoker.cs (4)
100OperationContext context = OperationContext.Current; 119Guid activityId = TraceUtility.GetReceivedActivityId(OperationContext.Current); 128Guid activityId = ActivityIdHeader.ExtractActivityId(OperationContext.Current.IncomingMessage); 143WcfEventSource.Instance.OperationInvoked(eventTraceActivity, MethodName, TraceUtility.GetCallerInfo(OperationContext.Current));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (4)
159OperationContext context = OperationContext.Current; 178Guid activityId = TraceUtility.GetReceivedActivityId(OperationContext.Current); 187Guid activityId = ActivityIdHeader.ExtractActivityId(OperationContext.Current.IncomingMessage); 205TraceUtility.GetCallerInfo(OperationContext.Current));
FrameworkFork\System.ServiceModel\System\ServiceModel\OperationContextScope.cs (2)
18private readonly OperationContext _originalContext = OperationContext.Current; 52if (OperationContext.Current != _currentContext)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\IdentityVerifier.cs (2)
219eventTraceActivity = EventTraceActivityHelper.TryExtractActivity((OperationContext.Current != null) ? OperationContext.Current.IncomingMessage : null);