/// <summary>
 /// Validate a domain name
 /// </summary>
 /// Check whether a domain name is valid or not.  API performs a live
 /// validation by contacting DNS services to validate the existence of the
 /// domain name.
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='domain'>
 /// Domain name to check, for example "cloudmersive.com"
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <CheckOKResponse> CheckAsync(this IDomain operations, string domain, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CheckWithHttpMessagesAsync(domain, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }