Exemplo n.º 1
0
 /// <summary>
 /// Attempts 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 AttemptSequenceAsync(SequenceName name, st::CancellationToken cancellationToken) =>
 AttemptSequenceAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
Exemplo n.º 2
0
 /// <summary>
 /// Attempts 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 AttemptSequenceAsync(SequenceName name, gaxgrpc::CallSettings callSettings = null) =>
 AttemptSequenceAsync(new AttemptSequenceRequest
 {
     SequenceName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)),
 }, callSettings);