Amazon.KeyManagementService.AmazonKeyManagementServiceClient.GenerateRandomAsync C# (CSharp) Method

GenerateRandomAsync() public method

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

            return InvokeAsync<GenerateRandomRequest,GenerateRandomResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }

Same methods

AmazonKeyManagementServiceClient::GenerateRandomAsync ( int numberOfBytes, System cancellationToken = default(CancellationToken) ) : Task
AmazonKeyManagementServiceClient