Amazon.CognitoSync.AmazonCognitoSyncClient.RegisterDeviceAsync C# (CSharp) Method

RegisterDeviceAsync() public method

Initiates the asynchronous execution of the RegisterDevice operation.
public RegisterDeviceAsync ( Amazon.CognitoSync.Model.RegisterDeviceRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.CognitoSync.Model.RegisterDeviceRequest Container for the necessary parameters to execute the RegisterDevice operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<RegisterDeviceResponse> RegisterDeviceAsync(RegisterDeviceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new RegisterDeviceRequestMarshaller();
            var unmarshaller = RegisterDeviceResponseUnmarshaller.Instance;

            return InvokeAsync<RegisterDeviceRequest,RegisterDeviceResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }

Same methods

AmazonCognitoSyncClient::RegisterDeviceAsync ( Amazon.CognitoSync.Model.RegisterDeviceRequest request, RegisterDeviceResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void