Exemplo n.º 1
0
 /// <summary>
 /// Get the list of subscriptions.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nameAvailabilityDefinition'>
 /// Check name availability parameter
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <CheckNameAvailabilityResponse> CheckNameAvailabilityAsync(this ISubscriptionsOperations operations, CheckNameAvailabilityDefinition nameAvailabilityDefinition, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CheckNameAvailabilityWithHttpMessagesAsync(nameAvailabilityDefinition, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }