Beispiel #1
0
 /// <summary>
 /// Executes an ExecuteBatchDml RPC asynchronously.
 /// </summary>
 /// <param name="request">The query request. Must not be null. The request will be modified with session and transaction details
 /// from this object. If this object's <see cref="TransactionId"/> is null, the request's transaction is not modified.</param>
 /// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
 /// <returns>A task representing the asynchronous operation. When the task completes, the result is the response from the RPC.</returns>
 public Task <ExecuteBatchDmlResponse> ExecuteBatchDmlAsync(ExecuteBatchDmlRequest request, CallSettings callSettings)
 {
     CheckNotDisposed();
     GaxPreconditions.CheckNotNull(request, nameof(request));
     request.SessionAsSessionName = SessionName;
     if (TransactionId != null)
     {
         request.Transaction = new TransactionSelector {
             Id = TransactionId
         };
     }
     return(RecordSuccessAndExpiredSessions(Client.ExecuteBatchDmlAsync(request, callSettings)));
 }
 partial void Modify_ExecuteBatchDmlRequest(ref ExecuteBatchDmlRequest request, ref CallSettings settings) =>
 ApplyResourcePrefixHeaderFromSession(ref settings, request.Session);