2 implementations of OperationContext
System.Data.Services (2)
System\Data\Services\DataService.cs (2)
135DataServiceOperationContext IDataService.OperationContext 2192public DataServiceOperationContext OperationContext
87 references to OperationContext
System.Data.Services (87)
System\Data\Services\DataService.cs (25)
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; 865etag = dataService.StreamProvider.GetStreamETag(actualEntity, dataService.OperationContext); 955responseFormat = SelectPrimitiveContentType(resourceType, acceptTypesText, mimeType, service.OperationContext.Host); 966responseFormat = SelectResponseFormat(service.OperationContext.Host, acceptTypesText, entityTarget); 1013string contentType = service.StreamProvider.GetStreamContentType(mediaLinkEntry, service.OperationContext); 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; 1191dataService.StreamProvider.DeleteStream(actualEntity, dataService.OperationContext); 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)) 2455this.dataService.OperationContext.AbsoluteServiceUri, 2481currentOperationContext = CreateOperationContextFromBatchStream(this.dataService.OperationContext.AbsoluteServiceUri, this.batchRequestStream, this.contentIds, changesetBoundary, writer); 2532DataServiceProcessingPipelineEventArgs eventArg = new DataServiceProcessingPipelineEventArgs(this.dataService.OperationContext);
System\Data\Services\DelegateBodyWriter.cs (1)
73HttpContextServiceHost host = this.service.OperationContext.Host.HttpContextServiceHost;
System\Data\Services\ErrorHandler.cs (5)
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 (1)
337DataServiceOperationContext operationContext = service.OperationContext;
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 (9)
74string[] segments = EnumerateSegments(absoluteRequestUri, service.OperationContext.AbsoluteServiceUri); 86Uri resultUri = GetResultUri(service.OperationContext); 167if (service.OperationContext.Host.AstoriaHttpVerb == AstoriaVerbs.GET) 169resultDescription.UpdateEpmResponseVersion(service.OperationContext.Host.RequestAccept, service.Provider); 499if (service.OperationContext.RequestMethod != segment.Operation.Method) 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 (3)
75this.mediaResourceStream = service.StreamProvider.GetReadStream(this.queryResults.Current, this.service.OperationContext); 82get { return this.service.OperationContext.AbsoluteServiceUri; } 88get { return this.service.OperationContext.Host; }
System\Data\Services\Serializers\Deserializer.cs (12)
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; 601throw DataServiceException.CreateBadRequestError(Strings.BadRequest_InvalidUriForMediaResource(service.OperationContext.AbsoluteRequestUri)); 604if (service.OperationContext.Host.AstoriaHttpVerb == AstoriaVerbs.MERGE) 607Strings.BadRequest_InvalidUriForMergeOperation(service.OperationContext.AbsoluteRequestUri), 611using (Stream writeStream = service.StreamProvider.GetWriteStream(resourceToBeModified, service.OperationContext)) 916Uri referencedUri = RequestUriProcessor.GetAbsoluteUriFromReference(uri, this.Service.OperationContext); 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\JsonSerializer.cs (1)
423this.Service.StreamProvider.GetStreamDescription(resource, this.Service.OperationContext, uriPath.AbsoluteUri, out mediaETag, out readStreamUri, out mediaContentType);
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 (2)
378DataServiceHostWrapper host = this.Service.OperationContext.Host; 500Uri referencedUri = RequestUriProcessor.GetAbsoluteUriFromReference(link.Uri.OriginalString, this.Service.OperationContext);
System\Data\Services\Serializers\SyndicationSerializer.cs (1)
501this.Service.StreamProvider.GetStreamDescription(element, this.Service.OperationContext, relativeUri, out mediaETag, out readStreamUri, out mediaContentType);
System\Data\Services\UpdatableWrapper.cs (1)
144DataServiceHostWrapper host = this.service.OperationContext.Host;
System\Data\Services\WebUtil.cs (5)
1048Debug.Assert(service.OperationContext.Host != null, "service.OperationContext.Host != null"); 1049DataServiceHostWrapper host = service.OperationContext.Host; 1525Debug.Assert(service.OperationContext != null, "service.OperationContext != null"); 1528string versionText = service.OperationContext.Host.RequestVersion; 1566versionText = service.OperationContext.Host.RequestMaxVersion;