/// <summary> /// Initiates the asynchronous execution of the NoPayload operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the NoPayload operation on AmazonRestJsonTestClient.</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 EndNoPayload /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/test-2021-05-13/NoPayload">REST API Reference for NoPayload Operation</seealso> public virtual IAsyncResult BeginNoPayload(NoPayloadRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = NoPayloadRequestMarshaller.Instance; options.ResponseUnmarshaller = NoPayloadResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }
/// <summary> /// Request without a body /// </summary> /// <param name="request">Container for the necessary parameters to execute the NoPayload 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 NoPayload service method, as returned by RestJsonTest.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/test-2021-05-13/NoPayload">REST API Reference for NoPayload Operation</seealso> public virtual Task <NoPayloadResponse> NoPayloadAsync(NoPayloadRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = NoPayloadRequestMarshaller.Instance; options.ResponseUnmarshaller = NoPayloadResponseUnmarshaller.Instance; return(InvokeAsync <NoPayloadResponse>(request, options, cancellationToken)); }
/// <summary> /// Request without a body /// </summary> /// <param name="request">Container for the necessary parameters to execute the NoPayload service method.</param> /// /// <returns>The response from the NoPayload service method, as returned by RestJsonTest.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/test-2021-05-13/NoPayload">REST API Reference for NoPayload Operation</seealso> public virtual NoPayloadResponse NoPayload(NoPayloadRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = NoPayloadRequestMarshaller.Instance; options.ResponseUnmarshaller = NoPayloadResponseUnmarshaller.Instance; return(Invoke <NoPayloadResponse>(request, options)); }
public void TestNoPayloadTest() { var request = new NoPayloadRequest(); var marshaller = new NoPayloadRequestMarshaller(); var internalRequest = marshaller.Marshall(request); Assert.IsFalse(internalRequest.Headers.ContainsKey("Content-Length")); Assert.IsFalse(internalRequest.Headers.ContainsKey("Content-Type")); Assert.IsNull(internalRequest.Content); }