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