Esempio n. 1
0
        /// <summary>
        /// GetEntitlements retrieves entitlement values for a given product. The results can
        /// be filtered based on customer identifier or product dimensions.
        /// </summary>
        /// <param name="request">Container for the necessary parameters to execute the GetEntitlements service method.</param>
        ///
        /// <returns>The response from the GetEntitlements service method, as returned by MarketplaceEntitlementService.</returns>
        /// <exception cref="Amazon.MarketplaceEntitlementService.Model.InternalServiceErrorException">
        /// An internal error has occurred. Retry your request. If the problem persists, post
        /// a message with details on the AWS forums.
        /// </exception>
        /// <exception cref="Amazon.MarketplaceEntitlementService.Model.InvalidParameterException">
        /// One or more parameters in your request was invalid.
        /// </exception>
        /// <exception cref="Amazon.MarketplaceEntitlementService.Model.ThrottlingException">
        /// The calls to the GetEntitlements API are throttled.
        /// </exception>
        /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/entitlement.marketplace-2017-01-11/GetEntitlements">REST API Reference for GetEntitlements Operation</seealso>
        public virtual GetEntitlementsResponse GetEntitlements(GetEntitlementsRequest request)
        {
            var marshaller   = GetEntitlementsRequestMarshaller.Instance;
            var unmarshaller = GetEntitlementsResponseUnmarshaller.Instance;

            return(Invoke <GetEntitlementsRequest, GetEntitlementsResponse>(request, marshaller, unmarshaller));
        }
Esempio n. 2
0
        internal GetEntitlementsResponse GetEntitlements(GetEntitlementsRequest request)
        {
            var marshaller   = new GetEntitlementsRequestMarshaller();
            var unmarshaller = GetEntitlementsResponseUnmarshaller.Instance;

            return(Invoke <GetEntitlementsRequest, GetEntitlementsResponse>(request, marshaller, unmarshaller));
        }
Esempio n. 3
0
        /// <summary>
        /// Initiates the asynchronous execution of the GetEntitlements operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the GetEntitlements 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/entitlement.marketplace-2017-01-11/GetEntitlements">REST API Reference for GetEntitlements Operation</seealso>
        public virtual Task <GetEntitlementsResponse> GetEntitlementsAsync(GetEntitlementsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = GetEntitlementsRequestMarshaller.Instance;
            var unmarshaller = GetEntitlementsResponseUnmarshaller.Instance;

            return(InvokeAsync <GetEntitlementsRequest, GetEntitlementsResponse>(request, marshaller,
                                                                                 unmarshaller, cancellationToken));
        }
Esempio n. 4
0
        /// <summary>
        /// Initiates the asynchronous execution of the GetEntitlements operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the GetEntitlements operation on AmazonMarketplaceEntitlementServiceClient.</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 EndGetEntitlements
        ///         operation.</returns>
        /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/entitlement.marketplace-2017-01-11/GetEntitlements">REST API Reference for GetEntitlements Operation</seealso>
        public IAsyncResult BeginGetEntitlements(GetEntitlementsRequest request, AsyncCallback callback, object state)
        {
            var marshaller   = new GetEntitlementsRequestMarshaller();
            var unmarshaller = GetEntitlementsResponseUnmarshaller.Instance;

            return(BeginInvoke <GetEntitlementsRequest>(request, marshaller, unmarshaller,
                                                        callback, state));
        }
        /// <summary>
        /// GetEntitlements retrieves entitlement values for a given product. The results can
        /// be filtered based on customer identifier or product dimensions.
        /// </summary>
        /// <param name="request">Container for the necessary parameters to execute the GetEntitlements service method.</param>
        /// <param name="cancellationToken">
        ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// </param>
        ///
        /// <returns>The response from the GetEntitlements service method, as returned by MarketplaceEntitlementService.</returns>
        /// <exception cref="Amazon.MarketplaceEntitlementService.Model.InternalServiceErrorException">
        /// An internal error has occurred. Retry your request. If the problem persists, post
        /// a message with details on the AWS forums.
        /// </exception>
        /// <exception cref="Amazon.MarketplaceEntitlementService.Model.InvalidParameterException">
        /// One or more parameters in your request was invalid.
        /// </exception>
        /// <exception cref="Amazon.MarketplaceEntitlementService.Model.ThrottlingException">
        /// The calls to the GetEntitlements API are throttled.
        /// </exception>
        /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/entitlement.marketplace-2017-01-11/GetEntitlements">REST API Reference for GetEntitlements Operation</seealso>
        public virtual Task <GetEntitlementsResponse> GetEntitlementsAsync(GetEntitlementsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = GetEntitlementsRequestMarshaller.Instance;
            options.ResponseUnmarshaller = GetEntitlementsResponseUnmarshaller.Instance;

            return(InvokeAsync <GetEntitlementsResponse>(request, options, cancellationToken));
        }
        internal virtual GetEntitlementsResponse GetEntitlements(GetEntitlementsRequest request)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = GetEntitlementsRequestMarshaller.Instance;
            options.ResponseUnmarshaller = GetEntitlementsResponseUnmarshaller.Instance;

            return(Invoke <GetEntitlementsResponse>(request, options));
        }
Esempio n. 7
0
        /// <summary>
        /// Initiates the asynchronous execution of the GetEntitlements operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the GetEntitlements operation on AmazonMarketplaceEntitlementServiceClient.</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 EndGetEntitlements
        ///         operation.</returns>
        /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/entitlement.marketplace-2017-01-11/GetEntitlements">REST API Reference for GetEntitlements Operation</seealso>
        public virtual IAsyncResult BeginGetEntitlements(GetEntitlementsRequest request, AsyncCallback callback, object state)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = GetEntitlementsRequestMarshaller.Instance;
            options.ResponseUnmarshaller = GetEntitlementsResponseUnmarshaller.Instance;

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