Amazon.CognitoIdentity.AmazonCognitoIdentityClient.CreateIdentityPoolAsync C# (CSharp) Method

CreateIdentityPoolAsync() public method

Initiates the asynchronous execution of the CreateIdentityPool operation.
public CreateIdentityPoolAsync ( CreateIdentityPoolRequest request, CreateIdentityPoolResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
request Amazon.CognitoIdentity.Model.CreateIdentityPoolRequest Container for the necessary parameters to execute the CreateIdentityPool operation on AmazonCognitoIdentityClient.
callback CreateIdentityPoolResponse>.AmazonServiceCallback An Action delegate that is invoked when the operation completes.
options Amazon.Runtime.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 CreateIdentityPoolAsync(CreateIdentityPoolRequest request, AmazonServiceCallback<CreateIdentityPoolRequest, CreateIdentityPoolResponse> callback, AsyncOptions options = null)
        {
            options = options == null?new AsyncOptions():options;
            var marshaller = new CreateIdentityPoolRequestMarshaller();
            var unmarshaller = CreateIdentityPoolResponseUnmarshaller.Instance;
            Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;
            if(callback !=null )
                callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { 
                    AmazonServiceResult<CreateIdentityPoolRequest,CreateIdentityPoolResponse> responseObject 
                            = new AmazonServiceResult<CreateIdentityPoolRequest,CreateIdentityPoolResponse>((CreateIdentityPoolRequest)req, (CreateIdentityPoolResponse)res, ex , ao.State);    
                        callback(responseObject); 
                };
            BeginInvoke<CreateIdentityPoolRequest>(request, marshaller, unmarshaller, options, callbackHelper);
        }

Same methods

AmazonCognitoIdentityClient::CreateIdentityPoolAsync ( CreateIdentityPoolRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonCognitoIdentityClient