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