예제 #1
0
        internal virtual GetDevicesInPlacementResponse GetDevicesInPlacement(GetDevicesInPlacementRequest request)
        {
            var marshaller   = GetDevicesInPlacementRequestMarshaller.Instance;
            var unmarshaller = GetDevicesInPlacementResponseUnmarshaller.Instance;

            return(Invoke <GetDevicesInPlacementRequest, GetDevicesInPlacementResponse>(request, marshaller, unmarshaller));
        }
        internal virtual GetDevicesInPlacementResponse GetDevicesInPlacement(GetDevicesInPlacementRequest request)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = GetDevicesInPlacementRequestMarshaller.Instance;
            options.ResponseUnmarshaller = GetDevicesInPlacementResponseUnmarshaller.Instance;

            return(Invoke <GetDevicesInPlacementResponse>(request, options));
        }
예제 #3
0
        /// <summary>
        /// Initiates the asynchronous execution of the GetDevicesInPlacement operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the GetDevicesInPlacement 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/iot1click-projects-2018-05-14/GetDevicesInPlacement">REST API Reference for GetDevicesInPlacement Operation</seealso>
        public virtual Task <GetDevicesInPlacementResponse> GetDevicesInPlacementAsync(GetDevicesInPlacementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = GetDevicesInPlacementRequestMarshaller.Instance;
            var unmarshaller = GetDevicesInPlacementResponseUnmarshaller.Instance;

            return(InvokeAsync <GetDevicesInPlacementRequest, GetDevicesInPlacementResponse>(request, marshaller,
                                                                                             unmarshaller, cancellationToken));
        }