Exemplo n.º 1
0
        public static void AddExpandedResourceType(this RequestDescription requestDescription, ResourceType resourceType)
        {
            List <ResourceType> resourceTypes = requestDescription.GetExpandedResourceTypes();

            if (resourceTypes == null)
            {
                resourceTypes = new List <ResourceType>();
                requestDescription.SetAnnotation(ExpandedResourceTypesName, resourceTypes);
            }
            resourceTypes.Add(resourceType);
        }
Exemplo n.º 2
0
 public static void SetPostServiceOperation(this RequestDescription requestDescription)
 {
     requestDescription.SetAnnotation(PostServiceOperationName, true);
 }
Exemplo n.º 3
0
 public static void SetInvalidClientRequest(this RequestDescription requestDescription)
 {
     requestDescription.SetAnnotation(InvalidClientRequestAnnotationName, true);
 }
Exemplo n.º 4
0
 public static void SetPropertyForPropertyOnlyOperation(this RequestDescription requestDescription, ResourceProperty property)
 {
     requestDescription.SetAnnotation(PropertyForPropertyOnlyOperationName, property);
 }
Exemplo n.º 5
0
 public static void SetSpecialExpandOnLinksProperty(this RequestDescription requestDescription, ResourceProperty expandProperty)
 {
     requestDescription.SetAnnotation(SpecialExpandOnLinksPropertyAnnotationName, expandProperty);
 }
Exemplo n.º 6
0
 public static void SetInherentOrderByKeys(this RequestDescription requestDescription)
 {
     requestDescription.SetAnnotation(InherentOrderByKeysAnnotationName, true);
 }
Exemplo n.º 7
0
 public static void SetExpandProperty(this RequestDescription requestDescription, ResourceProperty expandProperty)
 {
     requestDescription.SetAnnotation(ExpandPropertyAnnotationName, expandProperty);
 }
Exemplo n.º 8
0
 public static void SetPOSTVersions(this RequestDescription requestDescription, ServiceVersions versions)
 {
     requestDescription.SetAnnotation(POSTVersionsAnnotationName, versions);
 }
Exemplo n.º 9
0
 public static void SetPUTPATCHVersions(this RequestDescription requestDescription, ServiceVersions versions)
 {
     requestDescription.SetAnnotation(PUTMERGEVersionsAnnotationName, versions);
 }
Exemplo n.º 10
0
 public static void SetUpdatePathType(this RequestDescription requestDescription, UpdatePathType value)
 {
     requestDescription.SetAnnotation(UpdatePathTypeName, value);
 }
Exemplo n.º 11
0
 public static void SetIncludeRelationshipLinksInResponse(this RequestDescription requestDescription, bool value)
 {
     requestDescription.SetAnnotation(IncludeRelationshipLinksInResponseName, value);
 }