3 instantiations of OperationContext
dotnet-svcutil-lib (3)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelHandler.cs (2)
290
currentOperationContext = new
OperationContext
(request, message, channel);
1110
OperationContext currentOperationContext = new
OperationContext
();
FrameworkFork\System.ServiceModel\System\ServiceModel\OperationContextScope.cs (1)
23
this.PushContext(new
OperationContext
(channel));
86 references to OperationContext
dotnet-svcutil-lib (86)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (9)
548
OperationContext
context =
OperationContext
.Current;
757
ConcurrencyBehavior.UnlockInstanceBeforeCallout(
OperationContext
.Current);
778
ConcurrencyBehavior.LockInstanceAfterCallout(
OperationContext
.Current);
963
OperationContext
operationContext =
OperationContext
.Current;
1157
private void AddMessageProperties(Message message,
OperationContext
context)
1652
private
OperationContext
_operationContext;
1666
_operationContext =
OperationContext
.Current;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelFactory.cs (2)
354
OperationContext
current =
OperationContext
.Current;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelProxy.cs (12)
176
OperationContext
originalOperationContext =
OperationContext
.Current;
177
OperationContext
.Current = asyncResult.AsyncState as
OperationContext
;
189
OperationContext
.Current = originalOperationContext;
195
IAsyncResult ar = ServiceChannel.BeginCall(channel, operation, inputParameters, new AsyncCallback(endCallDelegate),
OperationContext
.Current);
218
OperationContext
originalOperationContext =
OperationContext
.Current;
219
OperationContext
.Current = asyncResult.AsyncState as
OperationContext
;
231
OperationContext
.Current = originalOperationContext;
237
IAsyncResult ar = ServiceChannel.BeginCall(channel, operation, inputParameters, new AsyncCallback(endCallDelegate),
OperationContext
.Current);
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\TraceUtility.cs (15)
110
internal static Guid GetReceivedActivityId(
OperationContext
operationContext)
311
static internal string GetCallerInfo(
OperationContext
context)
395
static internal void MessageFlowAtMessageReceived(Message message,
OperationContext
context, EventTraceActivity eventTraceActivity, bool createNewActivityId)
424
context =
OperationContext
.Current;
432
internal static string GetAnnotation(
OperationContext
context)
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 (7)
245
private bool DispatchAndReleasePump(RequestContext request, bool cleanThread,
OperationContext
currentOperationContext)
680
private bool HandleRequest(RequestContext request,
OperationContext
currentOperationContext)
1107
OperationContext
existingOperationContext =
OperationContext
.Current;
1110
OperationContext
currentOperationContext = new OperationContext();
1111
OperationContext
.Current = currentOperationContext;
1138
OperationContext
.Current = existingOperationContext;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ConcurrencyBehavior.cs (2)
112
internal static void UnlockInstanceBeforeCallout(
OperationContext
operationContext)
139
internal static void LockInstanceAfterCallout(
OperationContext
operationContext)
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\ImmutableDispatchRuntime.cs (1)
267
private void AddMessageProperties(Message message,
OperationContext
context, ServiceChannel replyChannel)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\MessageRpc.cs (5)
24
internal readonly
OperationContext
OperationContext;
67
OperationContext
operationContext, InstanceContext instanceContext, EventTraceActivity eventTraceActivity)
422
OperationContext
originalContext;
423
OperationContext
.Holder contextHolder;
426
contextHolder =
OperationContext
.CurrentHolder;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\SyncMethodInvoker.cs (5)
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 (5)
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\OperationContext.cs (9)
13
public sealed class OperationContext : IExtensibleObject<
OperationContext
>
21
private ExtensionCollection<
OperationContext
> _extensions;
84
public static
OperationContext
Current
101
Holder holder =
OperationContext
.s_currentContext;
105
OperationContext
.s_currentContext = holder;
131
public IExtensionCollection<
OperationContext
> Extensions
137
_extensions = new ExtensionCollection<
OperationContext
>(this);
366
private
OperationContext
_context;
368
public
OperationContext
Context
FrameworkFork\System.ServiceModel\System\ServiceModel\OperationContextScope.cs (8)
16
private
OperationContext
_currentContext;
18
private readonly
OperationContext
_originalContext =
OperationContext
.Current;
26
public OperationContextScope(
OperationContext
context)
40
private void PushContext(
OperationContext
context)
44
OperationContext
.Current = _currentContext;
52
if (
OperationContext
.Current != _currentContext)
56
OperationContext
.Current = _originalContext;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\IdentityVerifier.cs (2)
219
eventTraceActivity = EventTraceActivityHelper.TryExtractActivity((
OperationContext
.Current != null) ?
OperationContext
.Current.IncomingMessage : null);