Example #1
0
        public KeyVaultManagementClient(string subscriptionId, Uri endpoint, TokenCredential tokenCredential, KeyVaultManagementClientOptions options = null)
        {
            if (subscriptionId == null)
            {
                throw new ArgumentNullException(nameof(subscriptionId));
            }
            endpoint ??= new Uri("https://management.azure.com");

            options ??= new KeyVaultManagementClientOptions();
            _clientDiagnostics = new ClientDiagnostics(options);
            _pipeline          = ManagementPipelineBuilder.Build(tokenCredential, endpoint, options);
            _subscriptionId    = subscriptionId;
            _endpoint          = endpoint;
        }
Example #2
0
 public KeyVaultManagementClient(string subscriptionId, TokenCredential tokenCredential, KeyVaultManagementClientOptions options = null) : this(subscriptionId, null, tokenCredential, options)
 {
 }