49 references to SegmentInfos
System.Data.Services (49)
System\Data\Services\DataService.cs (20)
280
Debug.Assert(description.
SegmentInfos
[segmentIndex].RequestEnumerable != null, "requestDescription.SegmentInfos[segmentIndex].RequestEnumerable != null");
281
return Deserializer.GetResource(description.
SegmentInfos
[segmentIndex], typeFullName, ((IDataService)this), false /*checkForNull*/);
1340
Debug.Assert(parentResourceIndex >= 0 && parentResourceIndex < description.
SegmentInfos
.Length, "parentResourceIndex >= 0 && parentResourceIndex < description.SegmentInfos.Length");
1342
SegmentInfo parentEntitySegment = description.
SegmentInfos
[parentResourceIndex];
1403
return WriteSingleElementResponse(description, responseFormat, queryResults, description.
SegmentInfos
.Length - 1, etagValue, dataService);
1510
if (description.
SegmentInfos
[parentResourceIndex].RequestEnumerable != description.LastSegmentInfo.RequestEnumerable)
1514
for (int segmentIdx = parentResourceIndex + 1; segmentIdx < description.
SegmentInfos
.Length; segmentIdx++)
1516
SegmentInfo parentSegment = description.
SegmentInfos
[segmentIdx - 1];
1517
SegmentInfo currentSegment = description.
SegmentInfos
[segmentIdx];
1524
Debug.Assert(segmentIdx == description.
SegmentInfos
.Length - 1, "$value has to be the last segment.");
2276
if (Deserializer.IsCrossReferencedSegment(description.
SegmentInfos
[0], this))
2278
Debug.Assert(segmentIndex >= 0 && segmentIndex < description.
SegmentInfos
.Length, "segment index must be a valid one");
2279
if (description.
SegmentInfos
[segmentIndex].RequestEnumerable == null)
2281
object resource = Deserializer.GetCrossReferencedResource(description.
SegmentInfos
[0]);
2284
resource = this.Updatable.GetValue(resource, description.
SegmentInfos
[i].Identifier);
2287
throw DataServiceException.CreateBadRequestError(Strings.BadRequest_DereferencingNullPropertyValue(description.
SegmentInfos
[i].Identifier));
2290
description.
SegmentInfos
[i].RequestEnumerable = new object[] { resource };
2297
return Deserializer.GetCrossReferencedResource(description.
SegmentInfos
[segmentIndex]);
2301
return Deserializer.GetResource(description.
SegmentInfos
[segmentIndex], typeFullName, this, false /*checkForNull*/);
2728
string identifier = requestDescription.
SegmentInfos
[0].Identifier;
System\Data\Services\DataServiceConfiguration.cs (2)
647
Debug.Assert(index >= 0 && index < description.
SegmentInfos
.Length, "index >=0 && index <description.SegmentInfos.Length");
648
ResourceSetWrapper container = description.
SegmentInfos
[index].TargetContainer;
System\Data\Services\RequestDescription.cs (10)
164
queryResults == null || other.
SegmentInfos
!= null,
174
this.segmentInfos = other.
SegmentInfos
;
187
this.segmentInfos = other.
SegmentInfos
;
191
int lastSegmentIndex = other.
SegmentInfos
.Length - 1;
192
SegmentInfo lastSegmentInfo = other.
SegmentInfos
[lastSegmentIndex];
345
return this.TargetSource == RequestTargetSource.ServiceOperation && this.
SegmentInfos
[0].Operation.ResultKind == ServiceOperationResultKind.Enumeration;
424
SegmentInfo[] segmentInfos = description.
SegmentInfos
;
494
ResourceSetWrapper resourceSet = this.
SegmentInfos
[resourceIndex].TargetContainer;
569
return this.
SegmentInfos
.Length - 1;
572
for (int j = this.
SegmentInfos
.Length - 1; j >= 0; j--)
System\Data\Services\RequestQueryProcessor.cs (3)
122
(service.OperationContext.Host.AstoriaHttpVerb == AstoriaVerbs.GET || description.
SegmentInfos
[0].TargetSource == RequestTargetSource.ServiceOperation);
259
description.
SegmentInfos
[0].TargetSource != RequestTargetSource.ServiceOperation)
731
if (this.description.
SegmentInfos
.Any(si => si.TargetKind == RequestTargetKind.Link))
System\Data\Services\Serializers\Deserializer.cs (11)
394
Debug.Assert(description.
SegmentInfos
.Length >= 2, "description.SegmentInfos.Length >= 2");
409
modifyingResourceIndex = description.
SegmentInfos
.Length - 3;
413
modifyingResourceIndex = description.
SegmentInfos
.Length - 2;
426
if (description.
SegmentInfos
[j].TargetKind == RequestTargetKind.Resource ||
427
description.
SegmentInfos
[j].HasKeyValues)
436
entityContainer = description.
SegmentInfos
[entityResourceIndex].TargetContainer;
463
throw DataServiceException.CreateBadRequestError(Strings.BadRequest_DereferencingNullPropertyValue(description.
SegmentInfos
[entityResourceIndex].Identifier));
472
resourceToModify = updatable.GetValue(resourceToModify, description.
SegmentInfos
[i].Identifier);
483
throw DataServiceException.CreateBadRequestError(Strings.OpenNavigationPropertiesNotSupportedOnOpenTypes(description.
SegmentInfos
[entityResourceIndex].Identifier));
488
if (checkETag && !Deserializer.IsCrossReferencedSegment(description.
SegmentInfos
[modifyingResourceIndex], service) && description.TargetKind != RequestTargetKind.MediaResource)
920
object resourceCookie = this.Service.GetResource(requestDescription, requestDescription.
SegmentInfos
.Length - 1, null);
System\Data\Services\Serializers\Serializer.cs (2)
845
if (this.RequestDescription.
SegmentInfos
[0].TargetSource == RequestTargetSource.ServiceOperation)
847
foreach (var parameter in this.RequestDescription.
SegmentInfos
[0].Operation.Parameters)
System\Data\Services\Serializers\SyndicationDeserializer.cs (1)
516
object targetResource = this.Service.GetResource(description, description.
SegmentInfos
.Length - 1, null);