/// <summary>
 /// Checks whether the specified account name is available or taken.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='location'>
 /// The resource location without whitespace.
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to check the Data Lake Store account name availability.
 /// </param>
 public static NameAvailabilityInformation CheckNameAvailability(this IAccountsOperations operations, string location, CheckNameAvailabilityParameters parameters)
 {
     return(operations.CheckNameAvailabilityAsync(location, parameters).GetAwaiter().GetResult());
 }
Esempio n. 2
0
 /// <summary>
 /// Checks the account name availability.
 /// </summary>
 /// <remarks>
 /// Checks if account name is available.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='checkNameAvailabilityRequest'>
 /// The check name availability request.
 /// </param>
 public static CheckNameAvailabilityResult CheckNameAvailability(this IAccountsOperations operations, CheckNameAvailabilityRequest checkNameAvailabilityRequest)
 {
     return(operations.CheckNameAvailabilityAsync(checkNameAvailabilityRequest).GetAwaiter().GetResult());
 }