40 references to Service
System.Data.Services (40)
System\Data\Services\Serializers\Deserializer.cs (16)
99
return this.
Service
.Updatable;
323
entityGettingModified = Deserializer.HandleBindOperation(description, linkResource, deserializer.
Service
, deserializer.Tracker);
700
this.RequestDescription.UpdateAndCheckEpmFeatureVersion(this.description.LastSegmentInfo.TargetContainer, this.
Service
);
739
Deserializer.HandleBindOperation(requestDescription, resourceInPayload, this.
Service
, this.Tracker);
752
Deserializer.HandleBindOperation(requestDescription, resourceInPayload, this.
Service
, this.Tracker);
771
Debug.Assert(value <= this.
Service
.Configuration.MaxObjectCountOnInsert, "On initialize, the value should be less than max object count");
916
Uri referencedUri = RequestUriProcessor.GetAbsoluteUriFromReference(uri, this.
Service
.OperationContext);
917
RequestDescription requestDescription = RequestUriProcessor.ProcessRequestUri(referencedUri, this.
Service
);
920
object resourceCookie = this.
Service
.GetResource(requestDescription, requestDescription.SegmentInfos.Length - 1, null);
962
this.
Service
,
989
Debug.Assert(this.objectCount <= this.
Service
.Configuration.MaxObjectCountOnInsert, "The object count should never exceed the limit");
995
if (this.objectCount > this.
Service
.Configuration.MaxObjectCountOnInsert)
997
throw new DataServiceException(413, Strings.BadRequest_ExceedsMaxObjectCountOnInsert(this.
Service
.Configuration.MaxObjectCountOnInsert));
1010
Debug.Assert(this.
Service
!= null, "this.Service != null");
1029
if (WebUtil.IsAtomMimeType(this.
Service
.OperationContext.Host.RequestAccept))
1036
WebUtil.CheckVersion(this.
Service
, this.RequestDescription);
System\Data\Services\Serializers\JsonDeserializer.cs (11)
434
this.
Service
.OperationContext.Host.AstoriaHttpVerb == AstoriaVerbs.PUT /*replaceResource*/);
504
changed = changed || this.
Service
.OperationContext.Host.AstoriaHttpVerb == AstoriaVerbs.PUT;
562
SetPropertyValue(resourceProperty, resource, propertyValue, ContentFormat.Json, this.
Service
);
570
SetPropertyValue(resourceProperty, resource, propertyValue, ContentFormat.Json, this.
Service
);
644
SetOpenPropertyValue(parentResource, propertyName, propertyValue, this.
Service
);
648
ResourceType openPropertyResourceType = WebUtil.GetResourceType(this.
Service
.Provider, propertyValue);
714
targetType = this.
Service
.Provider.TryResolveResourceType(typeName);
747
else if (this.
Service
.Provider.HasDerivedTypes(expectedType))
779
Deserializer.CheckForBindingInPutOperations(this.
Service
.OperationContext.Host.AstoriaHttpVerb);
781
ResourceSetWrapper propertySet = this.
Service
.Provider.GetContainer(parentResourceSet, parentResourceType, resourceProperty);
788
this.RequestDescription.UpdateAndCheckEpmFeatureVersion(propertySet, this.
Service
);
System\Data\Services\Serializers\PlainXmlDeserializer.cs (4)
454
Deserializer.SetOpenPropertyValue(resource, propertyName, propertyValue, this.
Service
);
458
Deserializer.SetPropertyValue(property, resource, propertyValue, this.ContentFormat, this.
Service
);
480
resourceType = WebUtil.TryResolveResourceType(this.
Service
.Provider, typeName);
511
(!this.
Service
.Configuration.EnableTypeConversion && resourceProperty.ResourceType.ResourceTypeKind == ResourceTypeKind.Primitive);
System\Data\Services\Serializers\SyndicationDeserializer.cs (9)
378
DataServiceHostWrapper host = this.
Service
.OperationContext.Host;
427
new EpmContentDeSerializer.EpmContentDeserializerState { IsUpdateOperation = this.Update, Updatable = this.Updatable, Service = this.
Service
, PropertiesApplied = propertiesApplied });
500
Uri referencedUri = RequestUriProcessor.GetAbsoluteUriFromReference(link.Uri.OriginalString, this.
Service
.OperationContext);
501
RequestDescription description = RequestUriProcessor.ProcessRequestUri(referencedUri, this.
Service
);
516
object targetResource = this.
Service
.GetResource(description, description.SegmentInfos.Length - 1, null);
545
if (this.
Service
.Provider.HasDerivedTypes(resourceType))
553
resourceType = this.
Service
.Provider.TryResolveResourceType(typeName);
622
ResourceSetWrapper targetSet = this.
Service
.Provider.GetContainer(parentResourceSet, parentResourceType, property);
629
this.RequestDescription.UpdateAndCheckEpmFeatureVersion(targetSet, this.
Service
);