47 references to Current
System.Data.Services (2)
System\Data\Services\DataService.cs (1)
377if (!System.ServiceModel.Web.WebOperationContext.Current.OutgoingResponse.SuppressEntityBody)
System\Data\Services\HttpContextServiceHost.cs (1)
62this.operationContext = WebOperationContext.Current;
System.ServiceModel.Web (45)
System\ServiceModel\Description\WebHttpBehavior.cs (1)
1320UriTemplateMatch match = WebOperationContext.Current.IncomingRequest.UriTemplateMatch;
System\ServiceModel\Dispatcher\ContentTypeSettingClientMessageFormatter.cs (2)
66if (string.IsNullOrEmpty(WebOperationContext.Current.OutgoingRequest.ContentType)) 68WebOperationContext.Current.OutgoingRequest.ContentType = contentType;
System\ServiceModel\Dispatcher\ContentTypeSettingDispatchMessageFormatter.cs (2)
58if (string.IsNullOrEmpty(WebOperationContext.Current.OutgoingResponse.ContentType)) 60WebOperationContext.Current.OutgoingResponse.ContentType = contentType;
System\ServiceModel\Dispatcher\FormatSelectingMessageInspector.cs (5)
74string acceptHeader = WebOperationContext.Current.IncomingRequest.Accept; 119IList<ContentType> acceptHeaderElements = WebOperationContext.Current.IncomingRequest.GetAcceptHeaderElements(); 156string contentTypeStr = WebOperationContext.Current.IncomingRequest.ContentType; 193WebOperationContext.Current.OutgoingResponse.Format = format; 203OutgoingWebResponseContext outgoingResponse = WebOperationContext.Current.OutgoingResponse;
System\ServiceModel\Dispatcher\HelpPage.cs (6)
51Uri baseUri = UriTemplate.RewriteUri(OperationContext.Current.Channel.LocalAddress.Uri, WebOperationContext.Current.IncomingRequest.Headers[HttpRequestHeader.Host]); 61return WebOperationContext.Current.CreateTextResponse(helpPage, "text/html"); 66Uri requestUri = UriTemplate.RewriteUri(WebOperationContext.Current.IncomingRequest.UriTemplateMatch.RequestUri, WebOperationContext.Current.IncomingRequest.Headers[HttpRequestHeader.Host]); 73Uri baseUri = UriTemplate.RewriteUri(OperationContext.Current.Channel.LocalAddress.Uri, WebOperationContext.Current.IncomingRequest.Headers[HttpRequestHeader.Host]); 85return WebOperationContext.Current.CreateTextResponse(helpPage, "text/html");
System\ServiceModel\Dispatcher\HttpUnhandledOperationInvoker.cs (12)
55Message redirectResult = WebOperationContext.Current.CreateStreamResponse(s => HelpHtmlBuilder.CreateTransferRedirectPage(to.AbsoluteUri, newLocation.AbsoluteUri).Save(s, SaveOptions.OmitDuplicateNamespaces), Atom10Constants.HtmlMediaType); 56WebOperationContext.Current.OutgoingResponse.Location = newLocation.AbsoluteUri; 57WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.TemporaryRedirect; 58WebOperationContext.Current.OutgoingResponse.ContentType = HtmlContentType; 76Uri helpUri = this.HelpUri != null ? UriTemplate.RewriteUri(this.HelpUri, WebOperationContext.Current.IncomingRequest.Headers[HttpRequestHeader.Host]) : null; 82WebOperationContext.Current.OutgoingResponse.Headers[HttpResponseHeader.Allow] = allowedMethodsData.AllowHeader; 84result = WebOperationContext.Current.CreateStreamResponse(s => HelpHtmlBuilder.CreateMethodNotAllowedPage(helpUri).Save(s, SaveOptions.OmitDuplicateNamespaces), Atom10Constants.HtmlMediaType); 88result = WebOperationContext.Current.CreateStreamResponse(s => HelpHtmlBuilder.CreateEndpointNotFound(helpUri).Save(s, SaveOptions.OmitDuplicateNamespaces), Atom10Constants.HtmlMediaType); 91WebOperationContext.Current.OutgoingResponse.StatusCode = uriMatched ? HttpStatusCode.MethodNotAllowed : HttpStatusCode.NotFound; 92WebOperationContext.Current.OutgoingResponse.ContentType = HtmlContentType; 114WebOperationContext.Current.IncomingRequest.Method, OperationContext.Current.IncomingMessageHeaders.To))); 119WebOperationContext.Current.IncomingRequest.Method, OperationContext.Current.IncomingMessageHeaders.To)), TraceEventType.Warning);
System\ServiceModel\Dispatcher\JavascriptCallbackMessageInspector.cs (1)
77Message nullJsonMessage = WebOperationContext.Current.CreateJsonResponse<object>(null);
System\ServiceModel\Dispatcher\MultiplexingDispatchMessageFormatter.cs (1)
54WebOperationContext currentContext = WebOperationContext.Current;
System\ServiceModel\Dispatcher\SingleBodyParameterMessageFormatter.cs (2)
164WebOperationContext currentContext = WebOperationContext.Current; 189WebOperationContext currentContext = WebOperationContext.Current;
System\ServiceModel\Dispatcher\UriTemplateClientFormatter.cs (4)
86if (WebOperationContext.Current != null) 90WebOperationContext.Current.OutgoingRequest.SuppressEntityBody = true; 92if (this.method != WebHttpBehavior.WildcardMethod && WebOperationContext.Current.OutgoingRequest.Method != null) 94WebOperationContext.Current.OutgoingRequest.Method = this.method;
System\ServiceModel\Dispatcher\WebErrorHandler.cs (6)
59WebOperationContext context = WebOperationContext.Current; 66if (isXmlSerializerFaultFormat && WebOperationContext.Current.OutgoingResponse.Format == WebMessageFormat.Json) 127WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.BadRequest; 136if (WebOperationContext.Current != null) 138helpUri = this.webHttpBehavior.HelpUri != null ? UriTemplate.RewriteUri(this.webHttpBehavior.HelpUri, WebOperationContext.Current.IncomingRequest.Headers[HttpRequestHeader.Host]) : null; 152HttpResponseMessageProperty responseProperty = GetResponseProperty(WebOperationContext.Current, response);
System\ServiceModel\Web\IncomingWebRequestContext.cs (3)
194WebOperationContext.Current.OutgoingResponse.LastModified = lastModified; 291WebOperationContext.Current.OutgoingResponse.ETag = entityTag; 331WebOperationContext.Current.OutgoingResponse.ETag = entityTag;