/// <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> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IList <AssetIdAndChildrenAssetReferences> > GetParentsOfAssetAsync(this IAssets operations, string client, string id, string taxonomyType, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetParentsOfAssetWithHttpMessagesAsync(client, id, taxonomyType, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }