System\ServiceModel\Channels\ServiceChannelProxy.cs (12)
257OperationContext originalOperationContext = OperationContext.Current;
258OperationContext.Current = asyncResult.AsyncState as OperationContext;
265OperationContext.Current = originalOperationContext;
269return Task.Factory.FromAsync(beginCallDelegate, endCallDelegate, channel, operation, inputParameters, OperationContext.Current);
276OperationContext originalOperationContext = OperationContext.Current;
277OperationContext.Current = asyncResult.AsyncState as OperationContext;
284OperationContext.Current = originalOperationContext;
288return Task<T>.Factory.FromAsync<ServiceChannel, ProxyOperationRuntime, object[]>(beginCallDelegate, endCallDelegate, channel, operation, inputParameters, OperationContext.Current);
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,