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