internal ListTablesResponse ListTables(ListTablesRequest request) { var marshaller = new ListTablesRequestMarshaller(); var unmarshaller = ListTablesResponseUnmarshaller.Instance; return(Invoke <ListTablesRequest, ListTablesResponse>(request, marshaller, unmarshaller)); }
public void ListTablesMarshallTest() { var request = InstantiateClassGenerator.Execute <ListTablesRequest>(); var marshaller = new ListTablesRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson <ListTablesRequest>(request, jsonRequest); var webResponse = new WebResponseData { Headers = { { "x-amzn-RequestId", Guid.NewGuid().ToString() }, { "x-amz-crc32", "0" } } }; var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("ListTables").ResponseStructure).Execute(); webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); var response = ListTablesResponseUnmarshaller.Instance.Unmarshall(context) as ListTablesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// <para>Returns an array of table names associated with the current account and endpoint. The output from <i>ListTables</i> is paginated, with /// each page returning a maximum of 100 table names.</para> /// </summary> /// /// <param name="listTablesRequest">Container for the necessary parameters to execute the ListTables service method on AmazonDynamoDBv2.</param> /// /// <returns>The response from the ListTables service method, as returned by AmazonDynamoDBv2.</returns> /// /// <exception cref="T:Amazon.DynamoDBv2.Model.InternalServerErrorException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task <ListTablesResponse> ListTablesAsync(ListTablesRequest listTablesRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListTablesRequestMarshaller(); var unmarshaller = ListTablesResponseUnmarshaller.GetInstance(); return(Invoke <IRequest, ListTablesRequest, ListTablesResponse>(listTablesRequest, marshaller, unmarshaller, signer, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the ListTables operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTables operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task <ListTablesResponse> ListTablesAsync(ListTablesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListTablesRequestMarshaller(); var unmarshaller = ListTablesResponseUnmarshaller.Instance; return(InvokeAsync <ListTablesRequest, ListTablesResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the ListTables operation. /// <seealso cref="Amazon.DynamoDBv2.IAmazonDynamoDB"/> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTables operation.</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>void</returns> public void ListTablesAsync(ListTablesRequest request, AmazonServiceCallback callback, object state) { if (!AmazonInitializer.IsInitialized) { throw new Exception("AWSPrefab is not added to the scene"); } ThreadPool.QueueUserWorkItem(new WaitCallback(delegate { var marshaller = new ListTablesRequestMarshaller(); var unmarshaller = ListTablesResponseUnmarshaller.Instance; Invoke(request, callback, state, marshaller, unmarshaller, signer); })); return; }
/// <summary> /// Initiates the asynchronous execution of the ListTables operation. /// <seealso cref="Amazon.DynamoDBv2.IAmazonDynamoDB"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTables operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task<ListTablesResponse> ListTablesAsync(ListTablesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListTablesRequestMarshaller(); var unmarshaller = ListTablesResponseUnmarshaller.Instance; return InvokeAsync<ListTablesRequest,ListTablesResponse>(request, marshaller, unmarshaller, cancellationToken); }
internal ListTablesResponse ListTables(ListTablesRequest request) { var marshaller = new ListTablesRequestMarshaller(); var unmarshaller = ListTablesResponseUnmarshaller.Instance; return Invoke<ListTablesRequest,ListTablesResponse>(request, marshaller, unmarshaller); }
public void ListTablesMarshallTest() { var request = InstantiateClassGenerator.Execute<ListTablesRequest>(); var marshaller = new ListTablesRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson<ListTablesRequest>(request,jsonRequest); var webResponse = new WebResponseData { Headers = { {"x-amzn-RequestId", Guid.NewGuid().ToString()}, {"x-amz-crc32","0"} } }; var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("ListTables").ResponseStructure).Execute(); webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); var response = ListTablesResponseUnmarshaller.Instance.Unmarshall(context) as ListTablesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
IAsyncResult invokeListTables(ListTablesRequest listTablesRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new ListTablesRequestMarshaller().Marshall(listTablesRequest); var unmarshaller = ListTablesResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// <para>Returns an array of table names associated with the current account and endpoint. The output from <i>ListTables</i> is paginated, with /// each page returning a maximum of 100 table names.</para> /// </summary> /// /// <param name="listTablesRequest">Container for the necessary parameters to execute the ListTables service method on AmazonDynamoDBv2.</param> /// /// <returns>The response from the ListTables service method, as returned by AmazonDynamoDBv2.</returns> /// /// <exception cref="T:Amazon.DynamoDBv2.Model.InternalServerErrorException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<ListTablesResponse> ListTablesAsync(ListTablesRequest listTablesRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListTablesRequestMarshaller(); var unmarshaller = ListTablesResponseUnmarshaller.GetInstance(); return Invoke<IRequest, ListTablesRequest, ListTablesResponse>(listTablesRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the ListTables operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTables operation on AmazonDynamoDBClient.</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 EndListTables /// operation.</returns> public IAsyncResult BeginListTables(ListTablesRequest request, AsyncCallback callback, object state) { var marshaller = new ListTablesRequestMarshaller(); var unmarshaller = ListTablesResponseUnmarshaller.Instance; return BeginInvoke<ListTablesRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// <para> Returns a paginated list of table names created by the AWS Account of the caller in the AWS Region (e.g. us-east-1). </para> /// </summary> /// /// <param name="listTablesRequest">Container for the necessary parameters to execute the ListTables service method on AmazonDynamoDB.</param> /// /// <returns>The response from the ListTables service method, as returned by AmazonDynamoDB.</returns> /// /// <exception cref="InternalServerErrorException"/> public ListTablesResponse ListTables(ListTablesRequest listTablesRequest) { IRequest<ListTablesRequest> request = new ListTablesRequestMarshaller().Marshall(listTablesRequest); ListTablesResponse response = Invoke<ListTablesRequest, ListTablesResponse> (request, this.signer, ListTablesResponseUnmarshaller.GetInstance()); return response; }
/// <summary> /// Initiates the asynchronous execution of the ListTables operation. /// <seealso cref="Amazon.DynamoDBv2.IAmazonDynamoDB.ListTables"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTables operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public async Task<ListTablesResponse> ListTablesAsync(ListTablesRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListTablesRequestMarshaller(); var unmarshaller = ListTablesResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, ListTablesRequest, ListTablesResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// Initiates the asynchronous execution of the ListTables operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTables operation on AmazonDynamoDBClient.</param> /// <param name="callback">An Action delegate that is invoked when the operation completes.</param> /// <param name="options">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> public void ListTablesAsync(ListTablesRequest request, AmazonServiceCallback<ListTablesRequest, ListTablesResponse> callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var marshaller = new ListTablesRequestMarshaller(); var unmarshaller = ListTablesResponseUnmarshaller.Instance; Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult<ListTablesRequest,ListTablesResponse> responseObject = new AmazonServiceResult<ListTablesRequest,ListTablesResponse>((ListTablesRequest)req, (ListTablesResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke<ListTablesRequest>(request, marshaller, unmarshaller, options, callbackHelper); }