Пример #1
0
        internal virtual UnclaimDeviceResponse UnclaimDevice(UnclaimDeviceRequest request)
        {
            var marshaller   = UnclaimDeviceRequestMarshaller.Instance;
            var unmarshaller = UnclaimDeviceResponseUnmarshaller.Instance;

            return(Invoke <UnclaimDeviceRequest, UnclaimDeviceResponse>(request, marshaller, unmarshaller));
        }
Пример #2
0
        /// <summary>
        /// Initiates the asynchronous execution of the UnclaimDevice operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the UnclaimDevice 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/UnclaimDevice">REST API Reference for UnclaimDevice Operation</seealso>
        public virtual Task <UnclaimDeviceResponse> UnclaimDeviceAsync(UnclaimDeviceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = UnclaimDeviceRequestMarshaller.Instance;
            var unmarshaller = UnclaimDeviceResponseUnmarshaller.Instance;

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

            return(BeginInvoke <UnclaimDeviceRequest>(request, marshaller, unmarshaller,
                                                      callback, state));
        }
        /// <summary>
        /// Initiates the asynchronous execution of the UnclaimDevice operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the UnclaimDevice 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/UnclaimDevice">REST API Reference for UnclaimDevice Operation</seealso>
        public virtual Task <UnclaimDeviceResponse> UnclaimDeviceAsync(UnclaimDeviceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = UnclaimDeviceRequestMarshaller.Instance;
            options.ResponseUnmarshaller = UnclaimDeviceResponseUnmarshaller.Instance;

            return(InvokeAsync <UnclaimDeviceResponse>(request, options, cancellationToken));
        }
        internal virtual UnclaimDeviceResponse UnclaimDevice(UnclaimDeviceRequest request)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = UnclaimDeviceRequestMarshaller.Instance;
            options.ResponseUnmarshaller = UnclaimDeviceResponseUnmarshaller.Instance;

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

            options.RequestMarshaller    = UnclaimDeviceRequestMarshaller.Instance;
            options.ResponseUnmarshaller = UnclaimDeviceResponseUnmarshaller.Instance;

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