/// <summary> /// Initiates the asynchronous execution of the GetAccountSummary operation. /// <seealso cref="Amazon.IdentityManagement.IAmazonIdentityManagementService"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetAccountSummary 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> public Task<GetAccountSummaryResponse> GetAccountSummaryAsync(GetAccountSummaryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetAccountSummaryRequestMarshaller(); var unmarshaller = GetAccountSummaryResponseUnmarshaller.Instance; return InvokeAsync<GetAccountSummaryRequest,GetAccountSummaryResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the GetAccountSummary operation. /// <seealso cref="Amazon.IdentityManagement.AmazonIdentityManagementService.GetAccountSummary"/> /// </summary> /// /// <param name="getAccountSummaryRequest">Container for the necessary parameters to execute the GetAccountSummary operation on /// AmazonIdentityManagementService.</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 EndGetAccountSummary /// operation.</returns> public IAsyncResult BeginGetAccountSummary(GetAccountSummaryRequest getAccountSummaryRequest, AsyncCallback callback, object state) { return invokeGetAccountSummary(getAccountSummaryRequest, callback, state, false); }
internal GetAccountSummaryResponse GetAccountSummary(GetAccountSummaryRequest request) { var marshaller = new GetAccountSummaryRequestMarshaller(); var unmarshaller = GetAccountSummaryResponseUnmarshaller.Instance; return Invoke<GetAccountSummaryRequest,GetAccountSummaryResponse>(request, marshaller, unmarshaller); }
/// <summary> /// <para>Retrieves account level information about account entity usage and IAM quotas.</para> <para>For information about limitations on IAM /// entities, see Limitations on IAM Entities in <i>Using AWS Identity and Access Management</i> .</para> /// </summary> /// /// <param name="getAccountSummaryRequest">Container for the necessary parameters to execute the GetAccountSummary service method on /// AmazonIdentityManagementService.</param> /// /// <returns>The response from the GetAccountSummary service method, as returned by AmazonIdentityManagementService.</returns> /// public GetAccountSummaryResponse GetAccountSummary(GetAccountSummaryRequest getAccountSummaryRequest) { IAsyncResult asyncResult = invokeGetAccountSummary(getAccountSummaryRequest, null, null, true); return EndGetAccountSummary(asyncResult); }
IAsyncResult invokeGetAccountSummary(GetAccountSummaryRequest getAccountSummaryRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new GetAccountSummaryRequestMarshaller().Marshall(getAccountSummaryRequest); var unmarshaller = GetAccountSummaryResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
public Task <GetAccountSummaryResponse> GetAccountSummaryAsync(GetAccountSummaryRequest request, CancellationToken cancellationToken = new CancellationToken()) { throw new System.NotImplementedException(); }
/// <summary> /// Initiates the asynchronous execution of the GetAccountSummary operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetAccountSummary operation on AmazonIdentityManagementServiceClient.</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 EndGetAccountSummary /// operation.</returns> public IAsyncResult BeginGetAccountSummary(GetAccountSummaryRequest request, AsyncCallback callback, object state) { var marshaller = new GetAccountSummaryRequestMarshaller(); var unmarshaller = GetAccountSummaryResponseUnmarshaller.Instance; return BeginInvoke<GetAccountSummaryRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// Initiates the asynchronous execution of the GetAccountSummary operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetAccountSummary operation on AmazonIdentityManagementServiceClient.</param> /// <param name="callback">An Action delegate that is invoked when the operation completes.</param> /// <param name="options">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> public void GetAccountSummaryAsync(GetAccountSummaryRequest request, AmazonServiceCallback<GetAccountSummaryRequest, GetAccountSummaryResponse> callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var marshaller = new GetAccountSummaryRequestMarshaller(); var unmarshaller = GetAccountSummaryResponseUnmarshaller.Instance; Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult<GetAccountSummaryRequest,GetAccountSummaryResponse> responseObject = new AmazonServiceResult<GetAccountSummaryRequest,GetAccountSummaryResponse>((GetAccountSummaryRequest)req, (GetAccountSummaryResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke<GetAccountSummaryRequest>(request, marshaller, unmarshaller, options, callbackHelper); }
/// <summary> /// </summary> /// /// <param name="getAccountSummaryRequest">Container for the necessary /// parameters to execute the GetAccountSummary service method on /// AmazonIdentityManagementService.</param> /// /// <returns>The response from the GetAccountSummary service method, as /// returned by AmazonIdentityManagementService.</returns> /// public GetAccountSummaryResponse GetAccountSummary(GetAccountSummaryRequest getAccountSummaryRequest) { IRequest<GetAccountSummaryRequest> request = new GetAccountSummaryRequestMarshaller().Marshall(getAccountSummaryRequest); GetAccountSummaryResponse response = Invoke<GetAccountSummaryRequest, GetAccountSummaryResponse> (request, this.signer, GetAccountSummaryResponseUnmarshaller.GetInstance()); return response; }
/// <summary> /// Initiates the asynchronous execution of the GetAccountSummary operation. /// <seealso cref="Amazon.IdentityManagement.IAmazonIdentityManagementService.GetAccountSummary"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetAccountSummary 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> public async Task<GetAccountSummaryResponse> GetAccountSummaryAsync(GetAccountSummaryRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetAccountSummaryRequestMarshaller(); var unmarshaller = GetAccountSummaryResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, GetAccountSummaryRequest, GetAccountSummaryResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// <para>Retrieves account level information about account entity usage and IAM quotas.</para> <para>For information about limitations on IAM /// entities, see <a href="http://docs.aws.amazon.com/IAM/latest/UserGuide/index.html?LimitationsOnEntities.html">Limitations on IAM /// Entities</a> in <i>Using AWS Identity and Access Management</i> .</para> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetAccountSummary service method on /// AmazonIdentityManagementService.</param> /// /// <returns>The response from the GetAccountSummary service method, as returned by AmazonIdentityManagementService.</returns> public GetAccountSummaryResponse GetAccountSummary(GetAccountSummaryRequest request) { var task = GetAccountSummaryAsync(request); try { return task.Result; } catch(AggregateException e) { throw e.InnerException; } }
/// <summary> /// <para>Retrieves account level information about account entity usage and IAM quotas.</para> <para>For information about limitations on IAM /// entities, see <a href="http://docs.aws.amazon.com/IAM/latest/UserGuide/index.html?LimitationsOnEntities.html">Limitations on IAM /// Entities</a> in <i>Using AWS Identity and Access Management</i> .</para> /// </summary> /// /// <param name="getAccountSummaryRequest">Container for the necessary parameters to execute the GetAccountSummary service method on /// AmazonIdentityManagementService.</param> /// /// <returns>The response from the GetAccountSummary service method, as returned by AmazonIdentityManagementService.</returns> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<GetAccountSummaryResponse> GetAccountSummaryAsync(GetAccountSummaryRequest getAccountSummaryRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetAccountSummaryRequestMarshaller(); var unmarshaller = GetAccountSummaryResponseUnmarshaller.GetInstance(); return Invoke<IRequest, GetAccountSummaryRequest, GetAccountSummaryResponse>(getAccountSummaryRequest, marshaller, unmarshaller, signer, cancellationToken); }
internal GetAccountSummaryResponse GetAccountSummary(GetAccountSummaryRequest request) { var task = GetAccountSummaryAsync(request); try { return task.Result; } catch(AggregateException e) { ExceptionDispatchInfo.Capture(e.InnerException).Throw(); return null; } }
IAsyncResult invokeGetAccountSummary(GetAccountSummaryRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new GetAccountSummaryRequestMarshaller(); var unmarshaller = GetAccountSummaryResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }