93 references to Host
System.Data.Services (93)
System\Data\Services\DataService.cs (38)
413
writer(this.operationContext.
Host
.ResponseStream);
649
if (!String.IsNullOrEmpty(operationContext.
Host
.RequestIfMatch) && !String.IsNullOrEmpty(operationContext.
Host
.RequestIfNoneMatch))
699
Debug.Assert(dataService.OperationContext.
Host
!= null, "dataService.OperationContext.Host != null");
701
DataServiceHostWrapper host = dataService.OperationContext.
Host
;
833
Debug.Assert(dataService.OperationContext.
Host
!= null, "dataService.OperationContext.Host != null");
835
DataServiceHostWrapper host = dataService.OperationContext.
Host
;
955
responseFormat = SelectPrimitiveContentType(resourceType, acceptTypesText, mimeType, service.OperationContext.
Host
);
966
responseFormat = SelectResponseFormat(service.OperationContext.
Host
, acceptTypesText, entityTarget);
1015
service.OperationContext.
Host
.ResponseContentType = HttpProcessUtility.SelectRequiredMimeType(
1033
DataServiceHostWrapper host = dataService.OperationContext.
Host
;
1100
DataServiceHostWrapper host = dataService.OperationContext.
Host
;
1142
Debug.Assert(dataService.OperationContext.
Host
!= null, "dataService.OperationContext.Host != null");
1144
DataServiceHostWrapper host = dataService.OperationContext.
Host
;
1272
DataServiceHostWrapper host = dataService.OperationContext.
Host
;
1326
Debug.Assert(dataService.OperationContext != null && dataService.OperationContext.
Host
!= null, "dataService.OperationContext != null && dataService.OperationContext.Host != null");
1327
DataServiceHostWrapper host = dataService.OperationContext.
Host
;
1428
DataServiceHostWrapper host = dataService.OperationContext.
Host
;
1562
DataServiceHostWrapper host = dataService.OperationContext.
Host
;
1626
if (!String.IsNullOrEmpty(dataService.OperationContext.
Host
.RequestIfMatch) || !String.IsNullOrEmpty(dataService.OperationContext.
Host
.RequestIfNoneMatch))
1719
DataServiceHostWrapper host = this.operationContext.
Host
;
1756
string accept = (this.operationContext != null) ? this.operationContext.
Host
.RequestAccept : null;
1757
string acceptCharset = (this.operationContext != null) ? this.operationContext.
Host
.RequestAcceptCharSet : null;
1784
if (this.operationContext.
Host
.AstoriaHttpVerb != AstoriaVerbs.GET)
1815
Debug.Assert(this.operationContext != null && this.operationContext.
Host
!= null, "this.operationContext != null && this.operationContext.Host != null");
1816
DataServiceHostWrapper host = this.operationContext.
Host
;
2040
this.operationContext != null && this.operationContext.
Host
!= null,
2042
DataServiceHostWrapper host = this.operationContext.
Host
;
2439
this.WriteRequest(this.batchRequestDescription[i], this.batchOperationContexts[i].
Host
.BatchServiceHost);
2463
Debug.Assert(this.operationContext.
Host
.AstoriaHttpVerb == AstoriaVerbs.GET, "this.operationContext.Host.AstoriaHttpVerb == AstoriaVerbs.GET");
2470
this.WriteRequest(description, currentOperationContext.
Host
.BatchServiceHost);
2506
string contentId = currentOperationContext.
Host
.BatchServiceHost.ContentId;
2559
DataServiceHostWrapper currentHost = this.operationContext == null ? null : this.operationContext.
Host
;
2669
if (currentContext == null || currentContext.
Host
== null)
2675
currentHost = currentContext.
Host
;
2746
BatchServiceHost previousHost = previousContext.
Host
.BatchServiceHost;
2749
if (previousContext.
Host
.AstoriaHttpVerb == AstoriaVerbs.POST && previousHost.ContentId == contentId)
System\Data\Services\DelegateBodyWriter.cs (1)
73
HttpContextServiceHost host = this.service.OperationContext.
Host
.HttpContextServiceHost;
System\Data\Services\ErrorHandler.cs (4)
107
DataServiceHostWrapper host = service.OperationContext == null ? null : service.OperationContext.
Host
;
139
DataServiceHostWrapper host = service.OperationContext.
Host
;
168
service.OperationContext.
Host
.ProcessException(args);
233
DataServiceHostWrapper host = service.OperationContext.
Host
;
System\Data\Services\Providers\DataServiceStreamProviderWrapper.cs (8)
174
WebUtil.WriteETagValueInResponseHeader(this.GetStreamETag(entity, operationContext), operationContext.
Host
);
192
WebUtil.WriteETagValueInResponseHeader(this.GetStreamETag(entity, operationContext), operationContext.
Host
);
406
Debug.Assert(operationContext.
Host
!= null, "operationContext.Host != null");
407
DataServiceHostWrapper host = operationContext.
Host
;
441
string responseContentType = operationContext.
Host
.ResponseContentType;
442
string responseETag = operationContext.
Host
.ResponseETag;
444
if (operationContext.
Host
.ResponseContentType != responseContentType || operationContext.
Host
.ResponseETag != responseETag)
System\Data\Services\RequestQueryProcessor.cs (15)
122
(service.OperationContext.
Host
.AstoriaHttpVerb == AstoriaVerbs.GET || description.SegmentInfos[0].TargetSource == RequestTargetSource.ServiceOperation);
178
DataServiceHostWrapper host = service.OperationContext.
Host
;
258
if ((service.OperationContext.
Host
.AstoriaHttpVerb != AstoriaVerbs.GET) &&
502
this.description.UpdateEpmResponseVersion(this.service.OperationContext.
Host
.RequestAccept, resourceSet, this.service.Provider);
571
string expand = this.service.OperationContext.
Host
.GetQueryStringItem(XmlConstants.HttpQueryStringExpand);
693
string select = this.service.OperationContext.
Host
.GetQueryStringItem(XmlConstants.HttpQueryStringSelect);
834
if (!String.IsNullOrEmpty(this.service.OperationContext.
Host
.GetQueryStringItem(XmlConstants.HttpQueryStringExpand)))
850
string filter = this.service.OperationContext.
Host
.GetQueryStringItem(XmlConstants.HttpQueryStringFilter);
862
String skipToken = this.service.OperationContext.
Host
.GetQueryStringItem(XmlConstants.HttpQueryStringSkipToken);
967
string count = this.service.OperationContext.
Host
.GetQueryStringItem(XmlConstants.HttpQueryStringInlineCount);
986
if (this.service.OperationContext.
Host
.AstoriaHttpVerb != AstoriaVerbs.GET)
1025
StringBuilder orderBy = new StringBuilder(this.service.OperationContext.
Host
.GetQueryStringItem(XmlConstants.HttpQueryStringOrderBy));
1126
if (String.IsNullOrEmpty(this.service.OperationContext.
Host
.GetQueryStringItem(XmlConstants.HttpQueryStringExpand))
1127
&& String.IsNullOrEmpty(this.service.OperationContext.
Host
.GetQueryStringItem(XmlConstants.HttpQueryStringSelect)))
1360
string itemText = this.service.OperationContext.
Host
.GetQueryStringItem(queryItem);
System\Data\Services\RequestUriProcessor.cs (6)
167
if (service.OperationContext.
Host
.AstoriaHttpVerb == AstoriaVerbs.GET)
169
resultDescription.UpdateEpmResponseVersion(service.OperationContext.
Host
.RequestAccept, service.Provider);
515
segment.OperationParameters = ReadOperationParameters(service.OperationContext.
Host
, segment.Operation);
650
AstoriaVerbs verbUsed = service.OperationContext.
Host
.AstoriaHttpVerb;
784
if (service.OperationContext.
Host
.AstoriaHttpVerb != AstoriaVerbs.GET)
831
if (previous.TargetKind == RequestTargetKind.Link || hasQuery || service.OperationContext.
Host
.AstoriaHttpVerb == AstoriaVerbs.POST)
System\Data\Services\ResponseBodyWriter.cs (1)
88
get { return this.service.OperationContext.
Host
; }
System\Data\Services\Serializers\Deserializer.cs (8)
143
DataServiceHostWrapper host = dataService.OperationContext.
Host
;
152
(!update /*POST*/ && dataService.OperationContext.
Host
.AstoriaHttpVerb == AstoriaVerbs.POST) ||
153
(update /*PUT,MERGE*/ && (dataService.OperationContext.
Host
.AstoriaHttpVerb == AstoriaVerbs.MERGE || dataService.OperationContext.
Host
.AstoriaHttpVerb == AstoriaVerbs.PUT)),
242
DataServiceHostWrapper host = dataService.OperationContext.
Host
;
439
DataServiceHostWrapper host = service.OperationContext.
Host
;
604
if (service.OperationContext.
Host
.AstoriaHttpVerb == AstoriaVerbs.MERGE)
1029
if (WebUtil.IsAtomMimeType(this.Service.OperationContext.
Host
.RequestAccept))
System\Data\Services\Serializers\JsonDeserializer.cs (3)
434
this.Service.OperationContext.
Host
.AstoriaHttpVerb == AstoriaVerbs.PUT /*replaceResource*/);
504
changed = changed || this.Service.OperationContext.
Host
.AstoriaHttpVerb == AstoriaVerbs.PUT;
779
Deserializer.CheckForBindingInPutOperations(this.Service.OperationContext.
Host
.AstoriaHttpVerb);
System\Data\Services\Serializers\Serializer.cs (3)
855
string escapedQueryStringItem = DataStringEscapeBuilder.EscapeDataString(this.service.OperationContext.
Host
.GetQueryStringItem(parameter.Name));
862
String value = this.service.OperationContext.
Host
.GetQueryStringItem(queryParameter);
1100
String topQueryItem = this.service.OperationContext.
Host
.GetQueryStringItem(XmlConstants.HttpQueryStringTop);
System\Data\Services\Serializers\SyndicationDeserializer.cs (1)
378
DataServiceHostWrapper host = this.Service.OperationContext.
Host
;
System\Data\Services\UpdatableWrapper.cs (1)
144
DataServiceHostWrapper host = this.service.OperationContext.
Host
;
System\Data\Services\WebUtil.cs (4)
1048
Debug.Assert(service.OperationContext.
Host
!= null, "service.OperationContext.Host != null");
1049
DataServiceHostWrapper host = service.OperationContext.
Host
;
1528
string versionText = service.OperationContext.
Host
.RequestVersion;
1566
versionText = service.OperationContext.
Host
.RequestMaxVersion;