internal virtual ResolveCustomerResponse ResolveCustomer(ResolveCustomerRequest request) { var marshaller = new ResolveCustomerRequestMarshaller(); var unmarshaller = ResolveCustomerResponseUnmarshaller.Instance; return(Invoke <ResolveCustomerRequest, ResolveCustomerResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the ResolveCustomer operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ResolveCustomer 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/meteringmarketplace-2016-01-14/ResolveCustomer">REST API Reference for ResolveCustomer Operation</seealso> public virtual Task <ResolveCustomerResponse> ResolveCustomerAsync(ResolveCustomerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ResolveCustomerRequestMarshaller(); var unmarshaller = ResolveCustomerResponseUnmarshaller.Instance; return(InvokeAsync <ResolveCustomerRequest, ResolveCustomerResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the ResolveCustomer operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ResolveCustomer operation on AmazonAWSMarketplaceMeteringClient.</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 EndResolveCustomer /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/ResolveCustomer">REST API Reference for ResolveCustomer Operation</seealso> public virtual IAsyncResult BeginResolveCustomer(ResolveCustomerRequest request, AsyncCallback callback, object state) { var marshaller = new ResolveCustomerRequestMarshaller(); var unmarshaller = ResolveCustomerResponseUnmarshaller.Instance; return(BeginInvoke <ResolveCustomerRequest>(request, marshaller, unmarshaller, callback, state)); }
/// <summary> /// ResolveCustomer is called by a SaaS application during the registration process. When /// a buyer visits your website during the registration process, the buyer submits a registration /// token through their browser. The registration token is resolved through this API to /// obtain a CustomerIdentifier and product code. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ResolveCustomer 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 ResolveCustomer service method, as returned by AWSMarketplaceMetering.</returns> /// <exception cref="Amazon.AWSMarketplaceMetering.Model.DisabledApiException"> /// The API is disabled in the Region. /// </exception> /// <exception cref="Amazon.AWSMarketplaceMetering.Model.ExpiredTokenException"> /// The submitted registration token has expired. This can happen if the buyer's browser /// takes too long to redirect to your page, the buyer has resubmitted the registration /// token, or your application has held on to the registration token for too long. Your /// SaaS registration website should redeem this token as soon as it is submitted by the /// buyer's browser. /// </exception> /// <exception cref="Amazon.AWSMarketplaceMetering.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.AWSMarketplaceMetering.Model.InvalidTokenException"> /// Registration token is invalid. /// </exception> /// <exception cref="Amazon.AWSMarketplaceMetering.Model.ThrottlingException"> /// The calls to the API are throttled. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/ResolveCustomer">REST API Reference for ResolveCustomer Operation</seealso> public virtual Task<ResolveCustomerResponse> ResolveCustomerAsync(ResolveCustomerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ResolveCustomerRequestMarshaller.Instance; options.ResponseUnmarshaller = ResolveCustomerResponseUnmarshaller.Instance; return InvokeAsync<ResolveCustomerResponse>(request, options, cancellationToken); }
internal virtual ResolveCustomerResponse ResolveCustomer(ResolveCustomerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ResolveCustomerRequestMarshaller.Instance; options.ResponseUnmarshaller = ResolveCustomerResponseUnmarshaller.Instance; return Invoke<ResolveCustomerResponse>(request, options); }
/// <summary> /// Initiates the asynchronous execution of the ResolveCustomer operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ResolveCustomer operation on AmazonAWSMarketplaceMeteringClient.</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 EndResolveCustomer /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/ResolveCustomer">REST API Reference for ResolveCustomer Operation</seealso> public virtual IAsyncResult BeginResolveCustomer(ResolveCustomerRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ResolveCustomerRequestMarshaller.Instance; options.ResponseUnmarshaller = ResolveCustomerResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }