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

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