/// <summary> /// Retrieves the partial location/function asset tree from the asset itself to /// its top level location/function parent /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='client'> /// The name of the client account. /// </param> /// <param name='id'> /// The asset Guid to retrieve. /// </param> /// <param name='taxonomyType'> /// The type of tree to build. Possible values include: 'Location', 'Function' /// </param> public static IList <AssetIdAndChildrenAssetReferences> GetParentsOfAsset(this IAssets operations, string client, string id, string taxonomyType) { return(operations.GetParentsOfAssetAsync(client, id, taxonomyType).GetAwaiter().GetResult()); }