47 references to OutgoingResponse
System.Data.Services (16)
System\Data\Services\DataService.cs (1)
377if (!System.ServiceModel.Web.WebOperationContext.Current.OutgoingResponse.SuppressEntityBody)
System\Data\Services\HttpContextServiceHost.cs (15)
92return this.operationContext.OutgoingResponse.ContentType; 97this.operationContext.OutgoingResponse.ContentType = value; 223get { return this.operationContext.OutgoingResponse.Headers[HttpResponseHeader.CacheControl]; } 224set { this.operationContext.OutgoingResponse.Headers[HttpResponseHeader.CacheControl] = value; } 232return this.operationContext.OutgoingResponse.ETag; 237this.operationContext.OutgoingResponse.ETag = value; 244get { return this.operationContext.OutgoingResponse.Headers[HttpResponseHeader.Location]; } 245set { this.operationContext.OutgoingResponse.Headers[HttpResponseHeader.Location] = value; } 255return (int) this.operationContext.OutgoingResponse.StatusCode; 261this.operationContext.OutgoingResponse.StatusCode = statusCode; 267this.operationContext.OutgoingResponse.SuppressEntityBody = MustNotReturnMessageBody(statusCode); 290get { return this.operationContext.OutgoingResponse.Headers[XmlConstants.HttpDataServiceVersion]; } 291set { this.operationContext.OutgoingResponse.Headers[XmlConstants.HttpDataServiceVersion] = value; } 361get { return this.operationContext.OutgoingResponse.Headers; } 444this.operationContext.OutgoingResponse.Headers[HttpResponseHeader.Allow] = args.ResponseAllowHeader;
System.ServiceModel.Web (31)
System\ServiceModel\Dispatcher\ContentTypeSettingDispatchMessageFormatter.cs (2)
58if (string.IsNullOrEmpty(WebOperationContext.Current.OutgoingResponse.ContentType)) 60WebOperationContext.Current.OutgoingResponse.ContentType = contentType;
System\ServiceModel\Dispatcher\FormatSelectingMessageInspector.cs (2)
193WebOperationContext.Current.OutgoingResponse.Format = format; 203OutgoingWebResponseContext outgoingResponse = WebOperationContext.Current.OutgoingResponse;
System\ServiceModel\Dispatcher\HttpUnhandledOperationInvoker.cs (6)
56WebOperationContext.Current.OutgoingResponse.Location = newLocation.AbsoluteUri; 57WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.TemporaryRedirect; 58WebOperationContext.Current.OutgoingResponse.ContentType = HtmlContentType; 82WebOperationContext.Current.OutgoingResponse.Headers[HttpResponseHeader.Allow] = allowedMethodsData.AllowHeader; 91WebOperationContext.Current.OutgoingResponse.StatusCode = uriMatched ? HttpStatusCode.MethodNotAllowed : HttpStatusCode.NotFound; 92WebOperationContext.Current.OutgoingResponse.ContentType = HtmlContentType;
System\ServiceModel\Dispatcher\MultiplexingDispatchMessageFormatter.cs (1)
59outgoingResponse = currentContext.OutgoingResponse;
System\ServiceModel\Dispatcher\SingleBodyParameterMessageFormatter.cs (1)
167OutgoingWebResponseContext responseContext = currentContext.OutgoingResponse;
System\ServiceModel\Dispatcher\WebErrorHandler.cs (5)
60context.OutgoingResponse.StatusCode = webFaultException.StatusCode; 66if (isXmlSerializerFaultFormat && WebOperationContext.Current.OutgoingResponse.Format == WebMessageFormat.Json) 70WebMessageFormat? nullableFormat = !isXmlSerializerFaultFormat ? context.OutgoingResponse.Format : WebMessageFormat.Xml; 127WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.BadRequest; 166responseProperty = currentContext.OutgoingResponse.MessageProperty;
System\ServiceModel\Web\IncomingWebRequestContext.cs (3)
194WebOperationContext.Current.OutgoingResponse.LastModified = lastModified; 291WebOperationContext.Current.OutgoingResponse.ETag = entityTag; 331WebOperationContext.Current.OutgoingResponse.ETag = entityTag;
System\ServiceModel\Web\WebOperationContext.cs (11)
108AddContentType(WebOperationContext.DefaultJsonMediaType, this.OutgoingResponse.BindingWriteEncoding); 126AddContentType(WebOperationContext.DefaultXmlMediaType, this.OutgoingResponse.BindingWriteEncoding); 138AddContentType(WebOperationContext.DefaultXmlMediaType, this.OutgoingResponse.BindingWriteEncoding); 159AddContentType(WebOperationContext.DefaultXmlMediaType, this.OutgoingResponse.BindingWriteEncoding); 172AddContentType(WebOperationContext.DefaultXmlMediaType, this.OutgoingResponse.BindingWriteEncoding); 184AddContentType(WebOperationContext.DefaultAtomMediaType, this.OutgoingResponse.BindingWriteEncoding); 196AddContentType(WebOperationContext.DefaultAtomMediaType, this.OutgoingResponse.BindingWriteEncoding); 208AddContentType(WebOperationContext.DefaultAtomMediaType, this.OutgoingResponse.BindingWriteEncoding); 255Encoding encoding = this.OutgoingResponse.BindingWriteEncoding; 356if (string.IsNullOrEmpty(this.OutgoingResponse.ContentType)) 362this.OutgoingResponse.ContentType = contentType;