Example #1
0
        internal virtual GetCurrentMetricDataResponse GetCurrentMetricData(GetCurrentMetricDataRequest request)
        {
            var marshaller   = GetCurrentMetricDataRequestMarshaller.Instance;
            var unmarshaller = GetCurrentMetricDataResponseUnmarshaller.Instance;

            return(Invoke <GetCurrentMetricDataRequest, GetCurrentMetricDataResponse>(request, marshaller, unmarshaller));
        }
Example #2
0
        /// <summary>
        /// Initiates the asynchronous execution of the GetCurrentMetricData operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the GetCurrentMetricData 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/connect-2017-08-08/GetCurrentMetricData">REST API Reference for GetCurrentMetricData Operation</seealso>
        public virtual Task <GetCurrentMetricDataResponse> GetCurrentMetricDataAsync(GetCurrentMetricDataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = GetCurrentMetricDataRequestMarshaller.Instance;
            var unmarshaller = GetCurrentMetricDataResponseUnmarshaller.Instance;

            return(InvokeAsync <GetCurrentMetricDataRequest, GetCurrentMetricDataResponse>(request, marshaller,
                                                                                           unmarshaller, cancellationToken));
        }
        internal virtual GetCurrentMetricDataResponse GetCurrentMetricData(GetCurrentMetricDataRequest request)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = GetCurrentMetricDataRequestMarshaller.Instance;
            options.ResponseUnmarshaller = GetCurrentMetricDataResponseUnmarshaller.Instance;

            return(Invoke <GetCurrentMetricDataResponse>(request, options));
        }