21 references to RequestIfNoneMatch
System.Data.Services (21)
System\Data\Services\DataService.cs (13)
526
if (!WebUtil.IsETagValueValid(host.
RequestIfNoneMatch
, allowStrongEtag))
528
throw DataServiceException.CreateBadRequestError(Strings.DataService_ETagValueNotValid(host.
RequestIfNoneMatch
));
649
if (!String.IsNullOrEmpty(operationContext.Host.RequestIfMatch) && !String.IsNullOrEmpty(operationContext.Host.
RequestIfNoneMatch
))
847
if (!String.IsNullOrEmpty(host.RequestIfMatch) || !String.IsNullOrEmpty(host.
RequestIfNoneMatch
))
896
(String.IsNullOrEmpty(host.RequestIfMatch) && String.IsNullOrEmpty(host.
RequestIfNoneMatch
)) || description.TargetSource == RequestTargetSource.ServiceOperation,
1034
if (!String.IsNullOrEmpty(host.RequestIfMatch) || !String.IsNullOrEmpty(host.
RequestIfNoneMatch
))
1114
if (!String.IsNullOrEmpty(host.
RequestIfNoneMatch
) && description.TargetKind != RequestTargetKind.MediaResource)
1163
if (!String.IsNullOrEmpty(host.
RequestIfNoneMatch
))
1202
if (!String.IsNullOrEmpty(host.
RequestIfNoneMatch
))
1237
if (!String.IsNullOrEmpty(host.
RequestIfNoneMatch
))
1329
String.IsNullOrEmpty(host.RequestIfMatch) || String.IsNullOrEmpty(host.
RequestIfNoneMatch
),
1350
Debug.Assert(String.IsNullOrEmpty(host.RequestIfMatch) && String.IsNullOrEmpty(host.
RequestIfNoneMatch
), "ETag cannot be specified for $link requests");
1626
if (!String.IsNullOrEmpty(dataService.OperationContext.Host.RequestIfMatch) || !String.IsNullOrEmpty(dataService.OperationContext.Host.
RequestIfNoneMatch
))
System\Data\Services\Providers\DataServiceStreamProviderWrapper.cs (3)
408
Debug.Assert(string.IsNullOrEmpty(host.RequestIfMatch) || string.IsNullOrEmpty(host.
RequestIfNoneMatch
), "IfMatch and IfNoneMatch should not be both set.");
410
if (string.IsNullOrEmpty(host.RequestIfMatch) && string.IsNullOrEmpty(host.
RequestIfNoneMatch
))
422
etag = host.
RequestIfNoneMatch
;
System\Data\Services\UpdatableWrapper.cs (1)
145
Debug.Assert(String.IsNullOrEmpty(host.
RequestIfNoneMatch
), "IfNoneMatch header cannot be specified for Update/Delete operations");
System\Data\Services\WebUtil.cs (4)
1080
else if (String.IsNullOrEmpty(host.RequestIfMatch) && String.IsNullOrEmpty(host.
RequestIfNoneMatch
))
1088
else if (host.
RequestIfNoneMatch
== XmlConstants.HttpAnyETag)
1099
Debug.Assert(!String.IsNullOrEmpty(host.
RequestIfNoneMatch
), "Both can't be null, otherwise it should have entered the first condition");
1100
if (host.
RequestIfNoneMatch
== etag)