Ejemplo n.º 1
0
 /// <summary>
 /// Check if a resource name is available.
 /// </summary>
 /// <remarks>
 /// Check if a resource name is available.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='name'>
 /// Resource name to verify.
 /// </param>
 /// <param name='type'>
 /// Resource type used for verification. Possible values include: 'Site',
 /// 'Slot', 'HostingEnvironment', 'PublishingUser', 'Microsoft.Web/sites',
 /// 'Microsoft.Web/sites/slots', 'Microsoft.Web/hostingEnvironments',
 /// 'Microsoft.Web/publishingUsers'
 /// </param>
 /// <param name='isFqdn'>
 /// Is fully qualified domain name.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ResourceNameAvailability> CheckNameAvailabilityAsync(this IWebSiteManagementClient operations, string name, string type, bool?isFqdn = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CheckNameAvailabilityWithHttpMessagesAsync(name, type, isFqdn, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }