Пример #1
0
        public static Response <VaultNameAvailabilityResult> CheckVaultNameAvailability(this SubscriptionResource subscriptionResource, VaultNameAvailabilityContent content, CancellationToken cancellationToken = default)
        {
            Argument.AssertNotNull(content, nameof(content));

            return(GetExtensionClient(subscriptionResource).CheckVaultNameAvailability(content, cancellationToken));
        }
Пример #2
0
 public virtual Response <VaultNameAvailabilityResult> CheckVaultNameAvailability(VaultNameAvailabilityContent content, CancellationToken cancellationToken = default)
 {
     using var scope = VaultsClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.CheckVaultNameAvailability");
     scope.Start();
     try
     {
         var response = VaultsRestClient.CheckNameAvailability(Id.SubscriptionId, content, cancellationToken);
         return(response);
     }
     catch (Exception e)
     {
         scope.Failed(e);
         throw;
     }
 }
Пример #3
0
        public static async Task <Response <VaultNameAvailabilityResult> > CheckVaultNameAvailabilityAsync(this SubscriptionResource subscriptionResource, VaultNameAvailabilityContent content, CancellationToken cancellationToken = default)
        {
            Argument.AssertNotNull(content, nameof(content));

            return(await GetExtensionClient(subscriptionResource).CheckVaultNameAvailabilityAsync(content, cancellationToken).ConfigureAwait(false));
        }