/// <summary> /// Gets lineage info about the specified entity by GUID. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='guid'> /// The globally unique identifier of the entity. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <JsonAtlasLineageInfo> GetLineageGraphAsync(this ILineageREST operations, string guid, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetLineageGraphWithHttpMessagesAsync(guid, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets lineage info about the specified entity by GUID. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='guid'> /// The globally unique identifier of the entity. /// </param> public static JsonAtlasLineageInfo GetLineageGraph(this ILineageREST operations, string guid) { return(operations.GetLineageGraphAsync(guid).GetAwaiter().GetResult()); }