/// <summary> /// Performs a rollback of a transaction. Rolling back a transaction cancels its changes. /// </summary> /// <param name="request">Container for the necessary parameters to execute the RollbackTransaction service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RollbackTransaction service method, as returned by RDSDataService.</returns> /// <exception cref="Amazon.RDSDataService.Model.BadRequestException"> /// There is an error in the call or in a SQL statement. /// </exception> /// <exception cref="Amazon.RDSDataService.Model.ForbiddenException"> /// There are insufficient privileges to make the call. /// </exception> /// <exception cref="Amazon.RDSDataService.Model.InternalServerErrorException"> /// An internal error occurred. /// </exception> /// <exception cref="Amazon.RDSDataService.Model.NotFoundException"> /// The <code>resourceArn</code>, <code>secretArn</code>, or <code>transactionId</code> /// value can't be found. /// </exception> /// <exception cref="Amazon.RDSDataService.Model.ServiceUnavailableErrorException"> /// The service specified by the <code>resourceArn</code> parameter is not available. /// </exception> /// <exception cref="Amazon.RDSDataService.Model.StatementTimeoutException"> /// The execution of the SQL statement timed out. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/RollbackTransaction">REST API Reference for RollbackTransaction Operation</seealso> public virtual Task <RollbackTransactionResponse> RollbackTransactionAsync(RollbackTransactionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RollbackTransactionRequestMarshaller.Instance; options.ResponseUnmarshaller = RollbackTransactionResponseUnmarshaller.Instance; return(InvokeAsync <RollbackTransactionResponse>(request, options, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the RollbackTransaction operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RollbackTransaction operation on AmazonRDSDataServiceClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRollbackTransaction /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/RollbackTransaction">REST API Reference for RollbackTransaction Operation</seealso> public virtual IAsyncResult BeginRollbackTransaction(RollbackTransactionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = RollbackTransactionRequestMarshaller.Instance; options.ResponseUnmarshaller = RollbackTransactionResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }
internal virtual RollbackTransactionResponse RollbackTransaction(RollbackTransactionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RollbackTransactionRequestMarshaller.Instance; options.ResponseUnmarshaller = RollbackTransactionResponseUnmarshaller.Instance; return(Invoke <RollbackTransactionResponse>(request, options)); }
/// <inheritdoc/> public override async Task <RollbackTransactionResponse> RollbackTranaction(RollbackTransactionRequest request, ServerCallContext context) { await this.internalApi.RollbackTransaction(request.TransId); return(new RollbackTransactionResponse()); }