Amazon.EC2.AmazonEC2Client.ImportSnapshotAsync C# (CSharp) Method

ImportSnapshotAsync() public method

Initiates the asynchronous execution of the ImportSnapshot operation.
public ImportSnapshotAsync ( ImportSnapshotRequest request, System cancellationToken = default(CancellationToken) ) : Task
request ImportSnapshotRequest Container for the necessary parameters to execute the ImportSnapshot operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<ImportSnapshotResponse> ImportSnapshotAsync(ImportSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new ImportSnapshotRequestMarshaller();
            var unmarshaller = ImportSnapshotResponseUnmarshaller.Instance;

            return InvokeAsync<ImportSnapshotRequest,ImportSnapshotResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
AmazonEC2Client