public ListAttachedUserPoliciesAsync ( ListAttachedUserPoliciesRequest request, ListAttachedUserPoliciesResponse>.AmazonServiceCallback |
||
request | ListAttachedUserPoliciesRequest | Container for the necessary parameters to execute the ListAttachedUserPolicies operation on AmazonIdentityManagementServiceClient. |
callback | ListAttachedUserPoliciesResponse>.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. |
return | void |
public void ListAttachedUserPoliciesAsync(ListAttachedUserPoliciesRequest request, AmazonServiceCallback<ListAttachedUserPoliciesRequest, ListAttachedUserPoliciesResponse> callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var marshaller = new ListAttachedUserPoliciesRequestMarshaller();
var unmarshaller = ListAttachedUserPoliciesResponseUnmarshaller.Instance;
Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult<ListAttachedUserPoliciesRequest,ListAttachedUserPoliciesResponse> responseObject
= new AmazonServiceResult<ListAttachedUserPoliciesRequest,ListAttachedUserPoliciesResponse>((ListAttachedUserPoliciesRequest)req, (ListAttachedUserPoliciesResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke<ListAttachedUserPoliciesRequest>(request, marshaller, unmarshaller, options, callbackHelper);
}
AmazonIdentityManagementServiceClient::ListAttachedUserPoliciesAsync ( ListAttachedUserPoliciesRequest request, System cancellationToken = default(CancellationToken) ) : Task |