コード例 #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);
        }