Beispiel #1
0
        internal virtual InvokeDeviceMethodResponse InvokeDeviceMethod(InvokeDeviceMethodRequest request)
        {
            var marshaller   = InvokeDeviceMethodRequestMarshaller.Instance;
            var unmarshaller = InvokeDeviceMethodResponseUnmarshaller.Instance;

            return(Invoke <InvokeDeviceMethodRequest, InvokeDeviceMethodResponse>(request, marshaller, unmarshaller));
        }
Beispiel #2
0
        /// <summary>
        /// Initiates the asynchronous execution of the InvokeDeviceMethod operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the InvokeDeviceMethod 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>
        /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/InvokeDeviceMethod">REST API Reference for InvokeDeviceMethod Operation</seealso>
        public virtual Task <InvokeDeviceMethodResponse> InvokeDeviceMethodAsync(InvokeDeviceMethodRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = InvokeDeviceMethodRequestMarshaller.Instance;
            var unmarshaller = InvokeDeviceMethodResponseUnmarshaller.Instance;

            return(InvokeAsync <InvokeDeviceMethodRequest, InvokeDeviceMethodResponse>(request, marshaller,
                                                                                       unmarshaller, cancellationToken));
        }
        /// <summary>
        /// Initiates the asynchronous execution of the InvokeDeviceMethod operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the InvokeDeviceMethod operation on AmazonIoT1ClickDevicesServiceClient.</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 EndInvokeDeviceMethod
        ///         operation.</returns>
        /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/InvokeDeviceMethod">REST API Reference for InvokeDeviceMethod Operation</seealso>
        public virtual IAsyncResult BeginInvokeDeviceMethod(InvokeDeviceMethodRequest request, AsyncCallback callback, object state)
        {
            var marshaller   = InvokeDeviceMethodRequestMarshaller.Instance;
            var unmarshaller = InvokeDeviceMethodResponseUnmarshaller.Instance;

            return(BeginInvoke <InvokeDeviceMethodRequest>(request, marshaller, unmarshaller,
                                                           callback, state));
        }
        /// <summary>
        /// Initiates the asynchronous execution of the InvokeDeviceMethod operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the InvokeDeviceMethod 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>
        /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/InvokeDeviceMethod">REST API Reference for InvokeDeviceMethod Operation</seealso>
        public virtual Task <InvokeDeviceMethodResponse> InvokeDeviceMethodAsync(InvokeDeviceMethodRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = InvokeDeviceMethodRequestMarshaller.Instance;
            options.ResponseUnmarshaller = InvokeDeviceMethodResponseUnmarshaller.Instance;

            return(InvokeAsync <InvokeDeviceMethodResponse>(request, options, cancellationToken));
        }
        internal virtual InvokeDeviceMethodResponse InvokeDeviceMethod(InvokeDeviceMethodRequest request)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = InvokeDeviceMethodRequestMarshaller.Instance;
            options.ResponseUnmarshaller = InvokeDeviceMethodResponseUnmarshaller.Instance;

            return(Invoke <InvokeDeviceMethodResponse>(request, options));
        }
        /// <summary>
        /// Initiates the asynchronous execution of the InvokeDeviceMethod operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the InvokeDeviceMethod operation on AmazonIoT1ClickDevicesServiceClient.</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 EndInvokeDeviceMethod
        ///         operation.</returns>
        /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/InvokeDeviceMethod">REST API Reference for InvokeDeviceMethod Operation</seealso>
        public virtual IAsyncResult BeginInvokeDeviceMethod(InvokeDeviceMethodRequest request, AsyncCallback callback, object state)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = InvokeDeviceMethodRequestMarshaller.Instance;
            options.ResponseUnmarshaller = InvokeDeviceMethodResponseUnmarshaller.Instance;

            return(BeginInvoke(request, options, callback, state));
        }