83 references to TargetKind
System.Data.Services (83)
System\Data\Services\DataService.cs (25)
519
bool allowStrongEtag = description.
TargetKind
== RequestTargetKind.MediaResource;
664
Debug.Assert(description.
TargetKind
== RequestTargetKind.Metadata, "This method can only be called from the $metadata path because it enumerates through all resource types.");
704
if (description.
TargetKind
== RequestTargetKind.Metadata)
734
else if (description.
TargetKind
== RequestTargetKind.ServiceDirectory)
797
else if (description.
TargetKind
== RequestTargetKind.VoidServiceOperation)
863
if (description.
TargetKind
== RequestTargetKind.MediaResource)
883
description.LinkUri ? RequestTargetKind.Link : description.
TargetKind
,
1114
if (!String.IsNullOrEmpty(host.RequestIfNoneMatch) && description.
TargetKind
!= RequestTargetKind.MediaResource)
1153
else if (description.IsSingleResult && description.
TargetKind
== RequestTargetKind.Resource)
1196
else if (description.
TargetKind
== RequestTargetKind.PrimitiveValue)
1229
else if (description.
TargetKind
== RequestTargetKind.OpenProperty)
1234
else if (description.
TargetKind
== RequestTargetKind.OpenPropertyValue)
1274
if (description.
TargetKind
== RequestTargetKind.Metadata)
1283
else if (description.
TargetKind
== RequestTargetKind.ServiceDirectory)
1356
else if (RequestDescription.IsETagHeaderAllowed(description) && description.
TargetKind
!= RequestTargetKind.MediaResource)
1365
if (resource == null && description.
TargetKind
== RequestTargetKind.Resource)
1421
description.
TargetKind
== RequestTargetKind.OpenProperty ||
1422
description.
TargetKind
== RequestTargetKind.OpenPropertyValue ||
1423
description.
TargetKind
== RequestTargetKind.MediaResource,
1424
description.
TargetKind
+ " is open property, open property value, or MediaResource.");
1431
bool rawValue = description.
TargetKind
== RequestTargetKind.OpenPropertyValue || description.
TargetKind
== RequestTargetKind.MediaResource;
1728
if (description.
TargetKind
!= RequestTargetKind.Batch)
1772
Debug.Assert(description.
TargetKind
!= RequestTargetKind.Batch, "description.TargetKind != RequestTargetKind.Batch");
2502
description.
TargetKind
== RequestTargetKind.Resource || description.TargetSource == RequestTargetSource.ServiceOperation,
System\Data\Services\DataServiceConfiguration.cs (6)
630
description.
TargetKind
!= RequestTargetKind.Nothing,
633
description.
TargetKind
!= RequestTargetKind.VoidServiceOperation,
635
if (description.
TargetKind
== RequestTargetKind.Metadata ||
636
description.
TargetKind
== RequestTargetKind.ServiceDirectory)
640
else if (description.
TargetKind
== RequestTargetKind.Batch)
675
if (description.
TargetKind
!= RequestTargetKind.MediaResource)
System\Data\Services\RequestDescription.cs (2)
414
segmentInfo.TargetKind = description.
TargetKind
;
543
if (this.
TargetKind
== RequestTargetKind.Resource)
System\Data\Services\RequestQueryProcessor.cs (5)
105
description.
TargetKind
== RequestTargetKind.Resource ||
106
description.
TargetKind
== RequestTargetKind.OpenProperty ||
107
description.
TargetKind
== RequestTargetKind.ComplexObject ||
110
this.setQueryApplicable = (description.
TargetKind
== RequestTargetKind.Resource && !description.IsSingleResult) ||
119
this.pagingApplicable = (description.
TargetKind
== RequestTargetKind.Resource && !description.IsSingleResult) &&
System\Data\Services\RequestUriProcessor.cs (1)
387
if (description.
TargetKind
!= RequestTargetKind.Resource || !description.IsSingleResult || description.TargetSource != RequestTargetSource.EntitySet)
System\Data\Services\ResponseBodyWriter.cs (17)
72
if (this.requestDescription.
TargetKind
== RequestTargetKind.MediaResource)
110
this.requestDescription.
TargetKind
== RequestTargetKind.OpenPropertyValue ||
111
this.requestDescription.
TargetKind
== RequestTargetKind.PrimitiveValue ||
112
this.requestDescription.
TargetKind
== RequestTargetKind.MediaResource,
113
this.requestDescription.
TargetKind
+ " is PrimitiveValue or OpenPropertyValue or StreamPropertyValue");
117
if (this.requestDescription.
TargetKind
== RequestTargetKind.MediaResource)
132
this.requestDescription.
TargetKind
== RequestTargetKind.OpenPropertyValue ||
133
this.requestDescription.
TargetKind
== RequestTargetKind.PrimitiveValue,
134
this.requestDescription.
TargetKind
+ " is PrimitiveValue or OpenPropertyValue");
144
Debug.Assert(this.requestDescription.
TargetKind
!= RequestTargetKind.PrimitiveValue, "this.requestDescription.TargetKind != RequestTargetKind.PrimitiveValue");
145
Debug.Assert(this.requestDescription.
TargetKind
!= RequestTargetKind.OpenPropertyValue, "this.requestDescription.TargetKind != RequestTargetKind.OpenPropertyValue");
146
Debug.Assert(this.requestDescription.
TargetKind
!= RequestTargetKind.Metadata, "this.requestDescription.TargetKind != RequestTargetKind.Metadata");
148
if (this.requestDescription.
TargetKind
== RequestTargetKind.ServiceDirectory)
178
this.requestDescription.
TargetKind
== RequestTargetKind.OpenProperty ||
179
this.requestDescription.
TargetKind
== RequestTargetKind.Resource,
180
"TargetKind " + this.requestDescription.
TargetKind
+ " == Resource || OpenProperty -- POX should have handled it otherwise.");
202
Debug.Assert(this.requestDescription.
TargetKind
== RequestTargetKind.Metadata, "this.requestDescription.TargetKind == RequestTargetKind.Metadata");
System\Data\Services\Serializers\Deserializer.cs (21)
250
if (description.
TargetKind
== RequestTargetKind.OpenPropertyValue ||
251
description.
TargetKind
== RequestTargetKind.PrimitiveValue)
305
else if (description.
TargetKind
== RequestTargetKind.MediaResource)
406
description.
TargetKind
== RequestTargetKind.OpenPropertyValue ||
407
description.
TargetKind
== RequestTargetKind.PrimitiveValue)
478
description.
TargetKind
== RequestTargetKind.OpenProperty ||
479
description.
TargetKind
== RequestTargetKind.OpenPropertyValue,
488
if (checkETag && !Deserializer.IsCrossReferencedSegment(description.SegmentInfos[modifyingResourceIndex], service) && description.
TargetKind
!= RequestTargetKind.MediaResource)
506
if (description.
TargetKind
== RequestTargetKind.OpenProperty ||
507
description.
TargetKind
== RequestTargetKind.OpenPropertyValue)
512
else if (description.
TargetKind
== RequestTargetKind.MediaResource)
519
description.
TargetKind
== RequestTargetKind.Primitive ||
520
description.
TargetKind
== RequestTargetKind.ComplexObject ||
521
description.
TargetKind
== RequestTargetKind.PrimitiveValue,
695
if (requestDescription.
TargetKind
== RequestTargetKind.Resource)
1085
if (requestDescription.
TargetKind
== RequestTargetKind.PrimitiveValue ||
1086
requestDescription.
TargetKind
== RequestTargetKind.Primitive ||
1087
requestDescription.
TargetKind
== RequestTargetKind.OpenPropertyValue ||
1088
requestDescription.
TargetKind
== RequestTargetKind.MediaResource ||
1089
requestDescription.
TargetKind
== RequestTargetKind.ComplexObject)
1094
if (requestDescription.
TargetKind
== RequestTargetKind.OpenProperty)
System\Data\Services\Serializers\PlainXmlSerializer.cs (2)
135
element != null || this.RequestDescription.TargetResourceType != null || this.RequestDescription.
TargetKind
== RequestTargetKind.OpenProperty,
145
if (this.RequestDescription.
TargetKind
== RequestTargetKind.OpenProperty)
System\Data\Services\Serializers\SyndicationSerializer.cs (2)
186
if (this.RequestDescription.
TargetKind
== RequestTargetKind.OpenProperty)
232
if (this.RequestDescription.
TargetKind
!= RequestTargetKind.OpenProperty &&
System\Data\Services\WebUtil.cs (2)
463
else if (description.
TargetKind
== RequestTargetKind.Resource ||
476
description.
TargetKind
!= RequestTargetKind.OpenProperty &&