Пример #1
0
 /// <summary>
 /// Retrieves a sequence.
 /// </summary>
 /// <param name="name">
 /// </param>
 /// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param>
 /// <returns>A Task containing the RPC response.</returns>
 public virtual stt::Task <SequenceReport> GetSequenceReportAsync(SequenceReportName name, st::CancellationToken cancellationToken) =>
 GetSequenceReportAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
Пример #2
0
 /// <summary>
 /// Retrieves a sequence.
 /// </summary>
 /// <param name="name">
 /// </param>
 /// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
 /// <returns>A Task containing the RPC response.</returns>
 public virtual stt::Task <SequenceReport> GetSequenceReportAsync(SequenceReportName name, gaxgrpc::CallSettings callSettings = null) =>
 GetSequenceReportAsync(new GetSequenceReportRequest
 {
     SequenceReportName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)),
 }, callSettings);