示例#1
0
        internal ListDashboardsResponse ListDashboards(ListDashboardsRequest request)
        {
            var marshaller   = new ListDashboardsRequestMarshaller();
            var unmarshaller = ListDashboardsResponseUnmarshaller.Instance;

            return(Invoke <ListDashboardsRequest, ListDashboardsResponse>(request, marshaller, unmarshaller));
        }
示例#2
0
        /// <summary>
        /// Initiates the asynchronous execution of the ListDashboards operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the ListDashboards 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/monitoring-2010-08-01/ListDashboards">REST API Reference for ListDashboards Operation</seealso>
        public Task <ListDashboardsResponse> ListDashboardsAsync(ListDashboardsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new ListDashboardsRequestMarshaller();
            var unmarshaller = ListDashboardsResponseUnmarshaller.Instance;

            return(InvokeAsync <ListDashboardsRequest, ListDashboardsResponse>(request, marshaller,
                                                                               unmarshaller, cancellationToken));
        }
        public void ListDashboardsMarshallTest()
        {
            var operation = service_model.FindOperation("ListDashboards");

            var request         = InstantiateClassGenerator.Execute <ListDashboardsRequest>();
            var marshaller      = new ListDashboardsRequestMarshaller();
            var internalRequest = marshaller.Marshall(request);
            var validator       = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation);

            validator.Validate();


            var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute();
            var context         = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, null);
            var response        = ListDashboardsResponseUnmarshaller.Instance.Unmarshall(context)
                                  as ListDashboardsResponse;

            InstantiateClassGenerator.ValidateObjectFullyInstantiated(response);
        }