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