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