Amazon.IdentityManagement.AmazonIdentityManagementServiceClient.GetAccessKeyLastUsedAsync C# (CSharp) Метод

GetAccessKeyLastUsedAsync() публичный Метод

Initiates the asynchronous execution of the GetAccessKeyLastUsed operation.
public GetAccessKeyLastUsedAsync ( GetAccessKeyLastUsedRequest request, GetAccessKeyLastUsedResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
request GetAccessKeyLastUsedRequest Container for the necessary parameters to execute the GetAccessKeyLastUsed operation on AmazonIdentityManagementServiceClient.
callback GetAccessKeyLastUsedResponse>.AmazonServiceCallback An Action delegate that is invoked when the operation completes.
options AsyncOptions A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.
Результат void
        public void GetAccessKeyLastUsedAsync(GetAccessKeyLastUsedRequest request, AmazonServiceCallback<GetAccessKeyLastUsedRequest, GetAccessKeyLastUsedResponse> callback, AsyncOptions options = null)
        {
            options = options == null?new AsyncOptions():options;
            var marshaller = new GetAccessKeyLastUsedRequestMarshaller();
            var unmarshaller = GetAccessKeyLastUsedResponseUnmarshaller.Instance;
            Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;
            if(callback !=null )
                callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { 
                    AmazonServiceResult<GetAccessKeyLastUsedRequest,GetAccessKeyLastUsedResponse> responseObject 
                            = new AmazonServiceResult<GetAccessKeyLastUsedRequest,GetAccessKeyLastUsedResponse>((GetAccessKeyLastUsedRequest)req, (GetAccessKeyLastUsedResponse)res, ex , ao.State);    
                        callback(responseObject); 
                };
            BeginInvoke<GetAccessKeyLastUsedRequest>(request, marshaller, unmarshaller, options, callbackHelper);
        }

Same methods

AmazonIdentityManagementServiceClient::GetAccessKeyLastUsedAsync ( GetAccessKeyLastUsedRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonIdentityManagementServiceClient