/// <summary> /// <para>Describes one or more of the Offerings that are currently available for creating new Connections. The results include offerings for /// all regions.</para> <para>To order a new Connection you will need to select a specific Offering ID.</para> /// </summary> /// /// <param name="describeOfferingsRequest">Container for the necessary parameters to execute the DescribeOfferings service method on /// AmazonDirectConnect.</param> /// /// <returns>The response from the DescribeOfferings service method, as returned by AmazonDirectConnect.</returns> /// /// <exception cref="DirectConnectServerException"/> /// <exception cref="DirectConnectClientException"/> public DescribeOfferingsResponse DescribeOfferings(DescribeOfferingsRequest describeOfferingsRequest) { IAsyncResult asyncResult = invokeDescribeOfferings(describeOfferingsRequest, null, null, true); return EndDescribeOfferings(asyncResult); }
IAsyncResult invokeDescribeOfferings(DescribeOfferingsRequest describeOfferingsRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DescribeOfferingsRequestMarshaller().Marshall(describeOfferingsRequest); var unmarshaller = DescribeOfferingsResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Initiates the asynchronous execution of the DescribeOfferings operation. /// <seealso cref="Amazon.DirectConnect.AmazonDirectConnect.DescribeOfferings"/> /// </summary> /// /// <param name="describeOfferingsRequest">Container for the necessary parameters to execute the DescribeOfferings operation on /// AmazonDirectConnect.</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 EndDescribeOfferings /// operation.</returns> public IAsyncResult BeginDescribeOfferings(DescribeOfferingsRequest describeOfferingsRequest, AsyncCallback callback, object state) { return invokeDescribeOfferings(describeOfferingsRequest, callback, state, false); }