Exemplo n.º 1
0
 /// <summary>
 /// Checks whether a domain name in the cloudapp.azure.com zone is available
 /// for use.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='location'>
 /// The location of the domain name.
 /// </param>
 /// <param name='domainNameLabel'>
 /// The domain name to be verified. It must conform to the following regular
 /// expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <DnsNameAvailabilityResult> CheckDnsNameAvailabilityAsync(this INetworkManagementClient operations, string location, string domainNameLabel, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CheckDnsNameAvailabilityWithHttpMessagesAsync(location, domainNameLabel, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }