26 writes to Current
System.ServiceModel (12)
System\ServiceModel\Channels\ServiceChannelProxy.cs (4)
258OperationContext.Current = asyncResult.AsyncState as OperationContext; 265OperationContext.Current = originalOperationContext; 277OperationContext.Current = asyncResult.AsyncState as OperationContext; 284OperationContext.Current = originalOperationContext;
System\ServiceModel\Dispatcher\ChannelHandler.cs (6)
1459OperationContext.Current = currentOperationContext; 1486OperationContext.Current = existingOperationContext; 1538OperationContext.Current = currentOperationContext; 1574OperationContext.Current = existingOperationContext; 1623OperationContext.Current = currentOperationContext; 1679OperationContext.Current = existingOperationContext;
System\ServiceModel\OperationContextScope.cs (2)
75OperationContext.Current = this.currentContext; 90OperationContext.Current = this.originalContext;
System.ServiceModel.Activities (10)
System\ServiceModel\Activities\Dispatcher\ControlOperationInvoker.cs (2)
1087OperationContext.Current = newContext; 1092OperationContext.Current = this.current;
System\ServiceModel\Activities\InternalSendMessage.cs (6)
1821OperationContext.Current = this.instance.OperationContext; 1862OperationContext.Current = oldContext; 1913OperationContext.Current = thisPtr.instance.OperationContext; 1952OperationContext.Current = oldContext; 1976OperationContext.Current = thisPtr.instance.OperationContext; 2004OperationContext.Current = oldContext;
System\ServiceModel\Activities\WorkflowOperationContext.cs (2)
796OperationContext.Current = operationContext; 801OperationContext.Current = this.currentOperationContext;
System.WorkflowServices (4)
System\ServiceModel\Dispatcher\ServiceDurableInstance.cs (2)
878OperationContext.Current = startResult.operationContext; 909OperationContext.Current = oldOperationContext;
System\ServiceModel\Dispatcher\WorkflowRequestContext.cs (2)
147OperationContext.Current = this.operationContext; 176OperationContext.Current = this.operationContext;
259 references to Current
SMSvcHost (5)
System\ServiceModel\Activation\WorkerProcess.cs (5)
187this.connectionDuplicator = OperationContext.Current.GetCallbackChannel<IConnectionDuplicator>(); 207object property = OperationContext.Current.IncomingMessage.Properties[ConnectionMessageProperty.Name]; 257foreach (IChannel channel in OperationContext.Current.InstanceContext.IncomingChannels) 363OperationContext.Current.InstanceContext.Abort(); 368InstanceContext serviceInstance = OperationContext.Current.InstanceContext;
System.Data.Services (3)
System\Data\Services\DelegateBodyWriter.cs (1)
78var ctx = System.ServiceModel.OperationContext.Current;
System\Data\Services\HttpContextServiceHost.cs (2)
200if (OperationContext.Current.IncomingMessageProperties.TryGetValue(XmlConstants.MicrosoftDataServicesRequestUri, out property)) 302if (OperationContext.Current.IncomingMessageProperties.TryGetValue(XmlConstants.MicrosoftDataServicesRootUri, out property))
System.ServiceModel (100)
System\ServiceModel\Channels\PeerSecurityHelpers.cs (1)
905OperationContext opContext = OperationContext.Current;
System\ServiceModel\Channels\PeerService.cs (4)
147IPeerNeighbor neighbor = (IPeerNeighbor)getNeighborCallback(OperationContext.Current.GetCallbackChannel<IPeerProxy>()); 156OperationContext.Current.IncomingMessage); 177OperationContext.Current.IncomingMessage.Headers.Action); 328OperationContext current = OperationContext.Current;
System\ServiceModel\Channels\ServiceChannel.cs (5)
578OperationContext context = OperationContext.Current; 815ConcurrencyBehavior.UnlockInstanceBeforeCallout(OperationContext.Current); 836ConcurrencyBehavior.LockInstanceAfterCallout(OperationContext.Current); 1030OperationContext operationContext = OperationContext.Current; 1905this.operationContext = OperationContext.Current;
System\ServiceModel\Channels\ServiceChannelFactory.cs (1)
383OperationContext current = OperationContext.Current;
System\ServiceModel\Channels\ServiceChannelProxy.cs (4)
257OperationContext originalOperationContext = OperationContext.Current; 269return Task.Factory.FromAsync(beginCallDelegate, endCallDelegate, channel, operation, inputParameters, OperationContext.Current); 276OperationContext originalOperationContext = OperationContext.Current; 288return Task<T>.Factory.FromAsync<ServiceChannel, ProxyOperationRuntime, object[]>(beginCallDelegate, endCallDelegate, channel, operation, inputParameters, OperationContext.Current);
System\ServiceModel\Channels\SharedConnectionListener.cs (1)
756EventTraceActivity eventTraceActivity = EventTraceActivityHelper.TryExtractActivity(OperationContext.Current.IncomingMessage);
System\ServiceModel\Diagnostics\PerformanceCounters.cs (1)
834OperationContext currentContext = OperationContext.Current;
System\ServiceModel\Diagnostics\TraceUtility.cs (11)
1071context = OperationContext.Current; 1153if (OperationContext.Current != null && activity != null) 1155OperationContext.Current.OutgoingMessageProperties[TraceUtility.AsyncOperationActivityKey] = activity; 1162if (OperationContext.Current != null && OperationContext.Current.OutgoingMessageProperties.TryGetValue(TraceUtility.AsyncOperationActivityKey, out data)) 1164OperationContext.Current.OutgoingMessageProperties.Remove(TraceUtility.AsyncOperationActivityKey); 1171if (OperationContext.Current != null) 1173OperationContext.Current.OutgoingMessageProperties[TraceUtility.AsyncOperationStartTimeKey] = new EventTraceActivityTimeProperty(eventTraceActivity, startTime); 1182if (OperationContext.Current != null && OperationContext.Current.OutgoingMessageProperties.TryGetValue<EventTraceActivityTimeProperty>(TraceUtility.AsyncOperationStartTimeKey, out data)) 1184OperationContext.Current.OutgoingMessageProperties.Remove(TraceUtility.AsyncOperationStartTimeKey);
System\ServiceModel\Dispatcher\AsyncMethodInvoker.cs (6)
72Guid activityId = TraceUtility.GetReceivedActivityId(OperationContext.Current); 81Guid activityId = ActivityIdHeader.ExtractActivityId(OperationContext.Current.IncomingMessage); 175if (null != OperationContext.Current) 177Guid activityId = TraceUtility.GetReceivedActivityId(OperationContext.Current); 253OperationContext context = OperationContext.Current; 261TD.OperationInvoked(eventTraceActivity, methodName, TraceUtility.GetCallerInfo(OperationContext.Current));
System\ServiceModel\Dispatcher\ChannelHandler.cs (3)
1455OperationContext existingOperationContext = OperationContext.Current; 1533OperationContext existingOperationContext = OperationContext.Current; 1618OperationContext existingOperationContext = OperationContext.Current;
System\ServiceModel\Dispatcher\DispatchOperationRuntime.cs (1)
647OperationContext.Current.ClaimsPrincipal = claimsPrincipal;
System\ServiceModel\Dispatcher\DispatchRuntime.cs (4)
823ServiceChannel serviceChannel = OperationContext.Current.InternalServiceChannel; 824OperationContext.Current.OperationCompleted += 852OperationContext.Current.RequestContext.Close(); 853OperationContext.Current.RequestContext = null;
System\ServiceModel\Dispatcher\InstanceBehavior.cs (1)
260OperationContext current = OperationContext.Current;
System\ServiceModel\Dispatcher\SecurityImpersonationBehavior.cs (1)
130ClaimsPrincipal claimsPrincipal = OperationContext.Current.ClaimsPrincipal;
System\ServiceModel\Dispatcher\SyncMethodInvoker.cs (4)
127OperationContext context = OperationContext.Current; 146Guid activityId = TraceUtility.GetReceivedActivityId(OperationContext.Current); 155Guid activityId = ActivityIdHeader.ExtractActivityId(OperationContext.Current.IncomingMessage); 170TD.OperationInvoked(eventTraceActivity, this.MethodName, TraceUtility.GetCallerInfo(OperationContext.Current));
System\ServiceModel\InstanceContext.cs (2)
133get { return OperationContext.Current != null ? OperationContext.Current.InstanceContext : null; }
System\ServiceModel\OperationContext.cs (3)
376if (OperationContext.Current != null && OperationContext.Current.isAsyncFlowEnabled) 378OperationContext.Current.isAsyncFlowEnabled = false;
System\ServiceModel\OperationContextScope.cs (2)
20readonly OperationContext originalContext = OperationContext.Current; 86if (OperationContext.Current != this.currentContext)
System\ServiceModel\Security\IdentityModelServiceAuthorizationManager.cs (15)
125if (includeTransportTokens && (OperationContext.Current != null) && 126(OperationContext.Current.IncomingMessageProperties != null) && 127(OperationContext.Current.IncomingMessageProperties.Security != null) && 128(OperationContext.Current.IncomingMessageProperties.Security.TransportToken != null)) 131OperationContext.Current.IncomingMessageProperties.Security.TransportToken.SecurityToken; 134OperationContext.Current.IncomingMessageProperties.Security.TransportToken.SecurityTokenPolicies; 422if ((OperationContext.Current != null) && 423(OperationContext.Current.IncomingMessageProperties != null) && 424(OperationContext.Current.IncomingMessageProperties.Security != null)) 426SecurityMessageProperty securityMessageProperty = OperationContext.Current.IncomingMessageProperties.Security; 549if (OperationContext.Current != null && 550OperationContext.Current.Host != null && 551OperationContext.Current.Host.Description != null && 552OperationContext.Current.Host.Description.Behaviors != null) 554serviceCredentials = OperationContext.Current.Host.Description.Behaviors.Find<ServiceCredentials>();
System\ServiceModel\Security\IdentityVerifier.cs (2)
280eventTraceActivity = EventTraceActivityHelper.TryExtractActivity((OperationContext.Current != null) ? OperationContext.Current.IncomingMessage : null);
System\ServiceModel\Security\ImpersonateOnSerializingReplyMessageProperty.cs (4)
105if (OperationContext.Current != null) 107EndpointDispatcher endpointDispatcher = OperationContext.Current.EndpointDispatcher; 131if (OperationContext.Current != null) 133EndpointDispatcher endpointDispatcher = OperationContext.Current.EndpointDispatcher;
System\ServiceModel\Security\NegotiationTokenAuthenticator.cs (4)
621if (OperationContext.Current.SessionId == null) 631IChannel channel = OperationContext.Current.Channel; 646if (OperationContext.Current.SessionId == null) 656IChannel channel = OperationContext.Current.Channel;
System\ServiceModel\Security\ReceiveSecurityHeader.cs (2)
330this.eventTraceActivity = EventTraceActivityHelper.TryExtractActivity((OperationContext.Current != null) ? OperationContext.Current.IncomingMessage : null);
System\ServiceModel\Security\SecuritySessionSecurityTokenAuthenticator.cs (2)
836ILogonTokenCacheManager logonManager = OperationContext.Current.EndpointDispatcher.ChannelDispatcher.Listener.GetProperty<ILogonTokenCacheManager>(); 837Collection<ISecurityContextSecurityTokenCache> sctCaches = OperationContext.Current.EndpointDispatcher.ChannelDispatcher.Listener.GetProperty<Collection<ISecurityContextSecurityTokenCache>>();
System\ServiceModel\Security\WSTrustServiceContract.cs (15)
153if (OperationContext.Current != null && OperationContext.Current.Host != null && 154OperationContext.Current.Host.Description != null) 156ServiceCredentials serviceCreds = OperationContext.Current.Host.Description.Behaviors.Find<ServiceCredentials>(); 177this.GetSecurityHeaderTokenResolver(OperationContext.Current.RequestContext) 294Fx.Assert(OperationContext.Current != null, ""); 295Fx.Assert(OperationContext.Current.RequestContext != null, ""); 323response = Message.CreateMessage(OperationContext.Current.RequestContext.RequestMessage.Version, 362Principal = OperationContext.Current.ClaimsPrincipal as ClaimsPrincipal, 559Fx.Assert(OperationContext.Current != null, ""); 560Fx.Assert(OperationContext.Current.RequestContext != null, ""); 585OperationContext.Current.RequestContext.RequestMessage.Version, 673ServiceDebugBehavior debugBehavior = OperationContext.Current.Host.Description.Behaviors.Find<ServiceDebugBehavior>(); 686FaultException faultException = OperationContext.Current.Host.Credentials.ExceptionMapper.FromException(ex, (requestEnvelopeVersion == EnvelopeVersion.Soap11) ? soap11Namespace : soap12Namespace, trustNamespace); 1438return Message.CreateMessage(OperationContext.Current.RequestContext.RequestMessage.Version,
System\ServiceModel\ServiceSecurityContext.cs (1)
75OperationContext operationContext = OperationContext.Current;
System.ServiceModel.Activation (1)
System\ServiceModel\ServiceHostingEnvironment.cs (1)
475FxTrace.Trace.SetAnnotation(() => System.ServiceModel.Diagnostics.TraceUtility.GetAnnotation(OperationContext.Current));
System.ServiceModel.Activities (6)
System\ServiceModel\Activities\Dispatcher\ControlOperationInvoker.cs (2)
304this.operationContext = OperationContext.Current; 1086this.current = OperationContext.Current;
System\ServiceModel\Activities\InternalSendMessage.cs (3)
1816OperationContext oldContext = OperationContext.Current; 1906OperationContext oldContext = OperationContext.Current; 1972OperationContext oldContext = OperationContext.Current;
System\ServiceModel\Activities\WorkflowOperationContext.cs (1)
795this.currentOperationContext = OperationContext.Current;
System.ServiceModel.Discovery (78)
System\ServiceModel\Discovery\AnnouncementClient.cs (4)
581if (DiscoveryUtility.IsCompatible(OperationContext.Current, clientChannel)) 584this.originalMessageId = OperationContext.Current.OutgoingMessageHeaders.MessageId; 595OperationContext.Current.OutgoingMessageHeaders.MessageId = new UniqueId(); 607OperationContext.Current.OutgoingMessageHeaders.MessageId = this.originalMessageId;
System\ServiceModel\Discovery\AnnouncementSendsAsyncResult.cs (1)
40OperationContext.Current.OutgoingMessageHeaders.MessageId = this.messageIds[index];
System\ServiceModel\Discovery\ByeOperationAsyncResult.cs (2)
65UniqueId messageId = OperationContext.Current.IncomingMessageHeaders.MessageId; 79eventTraceActivity = EventTraceActivityHelper.TryExtractActivity(OperationContext.Current.IncomingMessage);
System\ServiceModel\Discovery\DiscoveryClient.cs (19)
557OperationContext operationContext = OperationContext.Current; 639OperationContext operationContext = OperationContext.Current; 706OperationContext operationContext = OperationContext.Current; 817Fx.Assert(OperationContext.Current != null, "OperationContext.Current cannot be null."); 818Fx.Assert(OperationContext.Current.OutgoingMessageHeaders != null, "OperationContext.Current.OutgoingMessageHeaders cannot be null."); 821OperationContext.Current.OutgoingMessageHeaders.MessageId, 864Fx.Assert(OperationContext.Current != null, "OperationContext.Current cannot be null."); 865Fx.Assert(OperationContext.Current.OutgoingMessageHeaders != null, "OperationContext.Current.OutgoingMessageHeaders cannot be null."); 869OperationContext.Current.OutgoingMessageHeaders.MessageId, 1281if (DiscoveryUtility.IsCompatible(OperationContext.Current, clientChannel)) 1284this.originalMessageId = OperationContext.Current.OutgoingMessageHeaders.MessageId; 1285this.originalReplyTo = OperationContext.Current.OutgoingMessageHeaders.ReplyTo; 1286this.originalTo = OperationContext.Current.OutgoingMessageHeaders.To; 1297OperationContext.Current.OutgoingMessageHeaders.MessageId = new UniqueId(); 1300OperationContext.Current.OutgoingMessageHeaders.ReplyTo = clientChannel.LocalAddress; 1301OperationContext.Current.OutgoingMessageHeaders.To = clientChannel.RemoteAddress.Uri; 1312OperationContext.Current.OutgoingMessageHeaders.MessageId = this.originalMessageId; 1313OperationContext.Current.OutgoingMessageHeaders.ReplyTo = this.originalReplyTo; 1314OperationContext.Current.OutgoingMessageHeaders.To = this.originalTo;
System\ServiceModel\Discovery\DiscoveryOperationContextExtensionInitializer.cs (1)
44OperationContext.Current.Extensions.Add(this.discoveryOperationContextExtension);
System\ServiceModel\Discovery\DiscoveryService.cs (2)
257if (OperationContext.Current.IncomingMessageHeaders.MessageId == null) 278OperationContext context = OperationContext.Current;
System\ServiceModel\Discovery\HelloOperationAsyncResult.cs (2)
68eventTraceActivity = EventTraceActivityHelper.TryExtractActivity(OperationContext.Current.IncomingMessage); 71UniqueId messageId = OperationContext.Current.IncomingMessageHeaders.MessageId;
System\ServiceModel\Discovery\ProbeDuplexAsyncResult.cs (5)
54this.context = new DiscoveryOperationContext(OperationContext.Current); 260bool isDuplicate = this.discoveryServiceImpl.IsDuplicate(OperationContext.Current.IncomingMessageHeaders.MessageId); 267OperationContext.Current.IncomingMessageHeaders.MessageId.ToString()); 283this.context.AddressDuplexResponseMessage(OperationContext.Current); 313this.context.AddressDuplexResponseMessage(OperationContext.Current);
System\ServiceModel\Discovery\ProbeRequestResponseAsyncResult.cs (4)
44this.context = new DiscoveryOperationContext(OperationContext.Current); 71this.context.AddressRequestResponseMessage(OperationContext.Current); 104bool isDuplicate = this.discoveryServiceImpl.IsDuplicate(OperationContext.Current.IncomingMessageHeaders.MessageId); 111OperationContext.Current.IncomingMessageHeaders.MessageId.ToString());
System\ServiceModel\Discovery\ResolveDuplexAsyncResult.cs (5)
47this.context = new DiscoveryOperationContext(OperationContext.Current); 213this.context.AddressDuplexResponseMessage(OperationContext.Current); 230bool isDuplicate = this.discoveryServiceImpl.IsDuplicate(OperationContext.Current.IncomingMessageHeaders.MessageId); 237OperationContext.Current.IncomingMessageHeaders.MessageId.ToString()); 253this.context.AddressDuplexResponseMessage(OperationContext.Current);
System\ServiceModel\Discovery\ResolveRequestResponseAsyncResult.cs (4)
39this.context = new DiscoveryOperationContext(OperationContext.Current); 74this.context.AddressRequestResponseMessage(OperationContext.Current); 102bool isDuplicate = this.discoveryServiceImpl.IsDuplicate(OperationContext.Current.IncomingMessageHeaders.MessageId); 109OperationContext.Current.IncomingMessageHeaders.MessageId.ToString());
System\ServiceModel\Discovery\UdpReplyToBehavior.cs (5)
85if (OperationContext.Current.IncomingMessageProperties.TryGetValue(RemoteEndpointMessageProperty.Name, out messageProperty)) 98OperationContext.Current.IncomingMessageHeaders.ReplyTo = AnnonymousAddress; 103if (NetworkInterfaceMessageProperty.TryGet(OperationContext.Current.IncomingMessageProperties, out udpMessageProperty)) 116OperationContext.Current.IncomingMessageProperties[DiscoveryMessageProperty.Name] = discoveryMessageProperty; 133if (OperationContext.Current.OutgoingMessageProperties.TryGetValue(
System\ServiceModel\Discovery\Version11\DiscoveryInnerClientAdhoc11.cs (6)
122OperationContext.Current.IncomingMessageHeaders.RelatesTo, 133OperationContext.Current.IncomingMessageHeaders.MessageId.ToString()); 151OperationContext.Current.IncomingMessageHeaders.RelatesTo, 161OperationContext.Current.IncomingMessageHeaders.MessageId.ToString()); 179OperationContext.Current.IncomingMessageHeaders.RelatesTo, 189OperationContext.Current.IncomingMessageHeaders.MessageId.ToString());
System\ServiceModel\Discovery\Version11\DiscoveryInnerClientManaged11.cs (4)
131OperationContext.Current.IncomingMessageHeaders.RelatesTo, 138this.responseReceiver.PostFindCompletedAndRemove(OperationContext.Current.IncomingMessageHeaders.RelatesTo, false, null); 151OperationContext.Current.IncomingMessageHeaders.RelatesTo, 157this.responseReceiver.PostResolveCompletedAndRemove(OperationContext.Current.IncomingMessageHeaders.RelatesTo, false, null);
System\ServiceModel\Discovery\VersionApril2005\DiscoveryInnerClientApril2005.cs (4)
123OperationContext.Current.IncomingMessageHeaders.RelatesTo, 142OperationContext.Current.IncomingMessageHeaders.RelatesTo, 160OperationContext.Current.IncomingMessageHeaders.RelatesTo, 170OperationContext.Current.IncomingMessageHeaders.MessageId.ToString());
System\ServiceModel\Discovery\VersionCD1\DiscoveryInnerClientAdhocCD1.cs (6)
122OperationContext.Current.IncomingMessageHeaders.RelatesTo, 133OperationContext.Current.IncomingMessageHeaders.MessageId.ToString()); 151OperationContext.Current.IncomingMessageHeaders.RelatesTo, 161OperationContext.Current.IncomingMessageHeaders.MessageId.ToString()); 178OperationContext.Current.IncomingMessageHeaders.RelatesTo, 188OperationContext.Current.IncomingMessageHeaders.MessageId.ToString());
System\ServiceModel\Discovery\VersionCD1\DiscoveryInnerClientManagedCD1.cs (4)
131OperationContext.Current.IncomingMessageHeaders.RelatesTo, 138this.responseReceiver.PostFindCompletedAndRemove(OperationContext.Current.IncomingMessageHeaders.RelatesTo, false, null); 151OperationContext.Current.IncomingMessageHeaders.RelatesTo, 157this.responseReceiver.PostResolveCompletedAndRemove(OperationContext.Current.IncomingMessageHeaders.RelatesTo, false, null);
System.ServiceModel.Routing (7)
System\ServiceModel\Routing\ProcessMessagesAsyncResult.cs (1)
52MessageRpc messageRpc = new MessageRpc(message, OperationContext.Current, this.channelExtension.ImpersonationRequired);
System\ServiceModel\Routing\ProcessRequestAsyncResult.cs (1)
32this.messageRpc = new MessageRpc(message, OperationContext.Current, service.ChannelExtension.ImpersonationRequired);
System\ServiceModel\Routing\RoutingService.cs (5)
54this.operationContext = OperationContext.Current; 280TD.RoutingServiceProcessingFailure(this.eventTraceActivity, OperationContext.Current.Channel.LocalAddress.ToString(), exception); 297TD.RoutingServiceProcessingFailure(this.eventTraceActivity, OperationContext.Current.Channel.LocalAddress.ToString(), exception); 314TD.RoutingServiceProcessingFailure(this.eventTraceActivity, OperationContext.Current.Channel.LocalAddress.ToString(), exception); 331TD.RoutingServiceProcessingFailure(this.eventTraceActivity, OperationContext.Current.Channel.LocalAddress.ToString(), exception);
System.ServiceModel.Web (27)
System\ServiceModel\Description\WebHttpBehavior.cs (2)
1318!OperationContext.Current.OutgoingMessageProperties.TryGetValue<JavascriptCallbackResponseMessageProperty>(JavascriptCallbackResponseMessageProperty.Name, out javascriptProperty)) 1332OperationContext.Current.OutgoingMessageProperties.Add(JavascriptCallbackResponseMessageProperty.Name, javascriptProperty);
System\ServiceModel\Dispatcher\ContentTypeSettingClientMessageFormatter.cs (2)
64if (OperationContext.Current != null && OperationContext.Current.HasOutgoingMessageProperties)
System\ServiceModel\Dispatcher\ContentTypeSettingDispatchMessageFormatter.cs (2)
56if (OperationContext.Current != null && OperationContext.Current.HasOutgoingMessageProperties)
System\ServiceModel\Dispatcher\FormatSelectingMessageInspector.cs (1)
67MessageProperties messageProperties = OperationContext.Current.IncomingMessageProperties;
System\ServiceModel\Dispatcher\HelpOperationInvoker.cs (1)
37UriTemplateMatch match = (UriTemplateMatch)OperationContext.Current.IncomingMessageProperties[IncomingWebRequestContext.UriTemplateMatchResultsPropertyName];
System\ServiceModel\Dispatcher\HelpPage.cs (2)
51Uri baseUri = UriTemplate.RewriteUri(OperationContext.Current.Channel.LocalAddress.Uri, WebOperationContext.Current.IncomingRequest.Headers[HttpRequestHeader.Host]); 73Uri baseUri = UriTemplate.RewriteUri(OperationContext.Current.Channel.LocalAddress.Uri, WebOperationContext.Current.IncomingRequest.Headers[HttpRequestHeader.Host]);
System\ServiceModel\Dispatcher\HttpUnhandledOperationInvoker.cs (4)
101OperationContext.Current.IncomingMessageHeaders.To))); 106OperationContext.Current.IncomingMessageHeaders.To)), TraceEventType.Warning); 114WebOperationContext.Current.IncomingRequest.Method, OperationContext.Current.IncomingMessageHeaders.To))); 119WebOperationContext.Current.IncomingRequest.Method, OperationContext.Current.IncomingMessageHeaders.To)), TraceEventType.Warning);
System\ServiceModel\Dispatcher\MultiplexingDispatchMessageFormatter.cs (2)
76if (OperationContext.Current != null) 78MessageProperties messageProperties = OperationContext.Current.IncomingMessageProperties;
System\ServiceModel\Dispatcher\UriTemplateClientFormatter.cs (2)
81bool userSetTheToOnOutgoingHeaders = (OperationContext.Current != null && OperationContext.Current.OutgoingMessageHeaders.To != null);
System\ServiceModel\Dispatcher\WebErrorHandler.cs (2)
62if (OperationContext.Current.IncomingMessageProperties.TryGetValue<string>(WebHttpDispatchOperationSelector.HttpOperationNamePropertyName, out operationName)) 94if (OperationContext.Current.OutgoingMessageProperties.TryGetValue<HttpResponseMessageProperty>(HttpResponseMessageProperty.Name, out property) &&
System\ServiceModel\Web\CachingParameterInspector.cs (3)
89OperationContext.Current.IncomingMessage.Version == MessageVersion.None) 117if (OperationContext.Current.ServiceSecurityContext == null) 123return OperationContext.Current.ServiceSecurityContext.IsAnonymous;
System\ServiceModel\Web\WebOperationContext.cs (4)
52if (OperationContext.Current == null) 56WebOperationContext existing = OperationContext.Current.Extensions.Find<WebOperationContext>(); 61return new WebOperationContext(OperationContext.Current); 346WebHttpDispatchOperationSelector selector = OperationContext.Current.EndpointDispatcher.DispatchRuntime.OperationSelector as WebHttpDispatchOperationSelector;
System.WorkflowServices (32)
System\ServiceModel\Dispatcher\DurableErrorHandler.cs (3)
21if (OperationContext.Current == null) 26DurableMessageDispatchInspector.SuppressContextOnReply(OperationContext.Current); 27OperationContext.Current.InstanceContext.IncomingChannels.Clear();
System\ServiceModel\Dispatcher\DurableMessageDispatchInspector.cs (1)
90DurableInstance durableInstance = OperationContext.Current.InstanceContext.Extensions.Find<DurableInstance>();
System\ServiceModel\Dispatcher\DurableOperationContext.cs (3)
38OperationContext operationContext = OperationContext.Current; 48OperationContext operationContext = OperationContext.Current; 63OperationContext operationContext = OperationContext.Current;
System\ServiceModel\Dispatcher\DurableRuntimeValidator.cs (4)
42OperationContext.Current != null && 43OperationContext.Current.EndpointDispatcher != null && 44OperationContext.Current.EndpointDispatcher.DispatchRuntime != null, 48this.concurrencyMode = OperationContext.Current.EndpointDispatcher.DispatchRuntime.ConcurrencyMode;
System\ServiceModel\Dispatcher\ServiceDurableInstance.cs (3)
784this.operationContext = OperationContext.Current; 877OperationContext oldOperationContext = OperationContext.Current; 946Fx.Assert(OperationContext.Current != null, "Operation context should not be null at this point.");
System\ServiceModel\Dispatcher\ServiceOperationInvoker.cs (1)
132this.operationContext = OperationContext.Current;
System\ServiceModel\Dispatcher\WorkflowOperationAsyncResult.cs (6)
289Fx.Assert(OperationContext.Current != null, "Called from non service thread"); 292if (OperationContext.Current.IncomingMessageProperties != null 293&& ContextMessageProperty.TryGet(OperationContext.Current.IncomingMessageProperties, out incomingContextProperties)) 305Fx.Assert(OperationContext.Current != null, "Called from non service thread"); 310if (!ContextMessageProperty.TryGet(OperationContext.Current.OutgoingMessageProperties, out context)) 312new ContextMessageProperty(this.outgoingContextProperties).AddOrReplaceInMessageProperties(OperationContext.Current.OutgoingMessageProperties);
System\ServiceModel\Dispatcher\WorkflowOperationInvoker.cs (2)
247Fx.Assert(OperationContext.Current != null, "Not in service dispatch thread"); 251if (!this.serviceAuthorizationManager.CheckAccess(OperationContext.Current))
System\ServiceModel\Dispatcher\WorkflowRequestContext.cs (5)
50this.operationContext = OperationContext.Current; 86if (OperationContext.Current == null) 91if (OperationContext.Current.ServiceSecurityContext != null) 93this.authorizationContext = OperationContext.Current.ServiceSecurityContext.AuthorizationContext; 175OperationContext current = OperationContext.Current;
System\Workflow\Runtime\Hosting\ChannelManagerService.cs (4)
164Fx.Assert(OperationContext.Current != null, "Can be called within a valid OperationContext Scope"); 172new ContextMessageProperty(logicalChannel.Context).AddOrReplaceInMessageProperties(OperationContext.Current.OutgoingMessageProperties); 243Fx.Assert(OperationContext.Current != null, "Can be called from valid OperationContextScope"); 250MessageProperties properties = OperationContext.Current.IncomingMessageProperties;