Amazon.IdentityManagement.AmazonIdentityManagementServiceClient.CreateLoginProfileAsync C# (CSharp) Method

CreateLoginProfileAsync() public method

Initiates the asynchronous execution of the CreateLoginProfile operation.
public CreateLoginProfileAsync ( CreateLoginProfileRequest request, CreateLoginProfileResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
request Amazon.IdentityManagement.Model.CreateLoginProfileRequest Container for the necessary parameters to execute the CreateLoginProfile operation on AmazonIdentityManagementServiceClient.
callback CreateLoginProfileResponse>.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 CreateLoginProfileAsync(CreateLoginProfileRequest request, AmazonServiceCallback<CreateLoginProfileRequest, CreateLoginProfileResponse> callback, AsyncOptions options = null)
        {
            options = options == null?new AsyncOptions():options;
            var marshaller = new CreateLoginProfileRequestMarshaller();
            var unmarshaller = CreateLoginProfileResponseUnmarshaller.Instance;
            Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;
            if(callback !=null )
                callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { 
                    AmazonServiceResult<CreateLoginProfileRequest,CreateLoginProfileResponse> responseObject 
                            = new AmazonServiceResult<CreateLoginProfileRequest,CreateLoginProfileResponse>((CreateLoginProfileRequest)req, (CreateLoginProfileResponse)res, ex , ao.State);    
                        callback(responseObject); 
                };
            BeginInvoke<CreateLoginProfileRequest>(request, marshaller, unmarshaller, options, callbackHelper);
        }

Same methods

AmazonIdentityManagementServiceClient::CreateLoginProfileAsync ( CreateLoginProfileRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonIdentityManagementServiceClient