Exemplo n.º 1
0
 /// <summary>
 /// Asynchronously retrieves the result of this job, which must be a query job.
 /// This method just creates a <see cref="JobReference"/> and delegates to <see cref="BigQueryClient.GetQueryResultsAsync(JobReference, GetQueryResultsOptions, CancellationToken)"/>.
 /// </summary>
 /// <remarks>
 /// <para>
 /// The task returned by this method will only complete when the query has completed.
 /// </para>
 /// </remarks>
 /// <param name="options">The options for the operation. May be null, in which case defaults will be supplied.</param>
 /// <param name="cancellationToken">The token to monitor for cancellation requests.</param>
 /// <returns>A task representing the asynchronous operation. When complete, the result is
 /// a <see cref="BigQueryResults"/> representation of the query.</returns>
 public Task <BigQueryResults> GetQueryResultsAsync(GetQueryResultsOptions options = null, CancellationToken cancellationToken = default) =>
 _client.GetQueryResultsAsync(Reference, GetQueryDestinationTable(), options, cancellationToken);