コード例 #1
0
 /// <summary>
 /// Initiates the asynchronous execution of the BatchWriteItem operation.
 /// <seealso cref="Amazon.DynamoDB.AmazonDynamoDB.BatchWriteItem"/>
 /// </summary>
 /// 
 /// <param name="batchWriteItemRequest">Container for the necessary parameters to execute the BatchWriteItem operation on
 ///          AmazonDynamoDB.</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 EndBatchWriteItem
 ///         operation.</returns>
 public IAsyncResult BeginBatchWriteItem(BatchWriteItemRequest batchWriteItemRequest, AsyncCallback callback, object state)
 {
     return invokeBatchWriteItem(batchWriteItemRequest, callback, state, false);
 }
コード例 #2
0
 IAsyncResult invokeBatchWriteItem(BatchWriteItemRequest batchWriteItemRequest, AsyncCallback callback, object state, bool synchronized)
 {
     IRequest irequest = new BatchWriteItemRequestMarshaller().Marshall(batchWriteItemRequest);
     var unmarshaller = BatchWriteItemResponseUnmarshaller.GetInstance();
     AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller);
     Invoke(result);
     return result;
 }
コード例 #3
0
 /// <summary>
 /// <para>Allows to execute a batch of Put and/or Delete Requests for many tables in a single call. A total of 25 requests are allowed.</para>
 /// <para>There are no transaction guarantees provided by this API. It does not allow conditional puts nor does it support return values.</para>
 /// </summary>
 /// 
 /// <param name="batchWriteItemRequest">Container for the necessary parameters to execute the BatchWriteItem service method on
 ///          AmazonDynamoDB.</param>
 /// 
 /// <returns>The response from the BatchWriteItem service method, as returned by AmazonDynamoDB.</returns>
 /// 
 /// <exception cref="ProvisionedThroughputExceededException"/>
 /// <exception cref="InternalServerErrorException"/>
 /// <exception cref="ResourceNotFoundException"/>
 public BatchWriteItemResponse BatchWriteItem(BatchWriteItemRequest batchWriteItemRequest)
 {
     IAsyncResult asyncResult = invokeBatchWriteItem(batchWriteItemRequest, null, null, true);
     return EndBatchWriteItem(asyncResult);
 }