public EventHubsManagementClient(string subscriptionId, Uri endpoint, TokenCredential tokenCredential, EventHubsManagementClientOptions options = null)
        {
            if (subscriptionId == null)
            {
                throw new ArgumentNullException(nameof(subscriptionId));
            }
            endpoint ??= new Uri("https://management.azure.com");

            options ??= new EventHubsManagementClientOptions();
            _clientDiagnostics = new ClientDiagnostics(options);
            _pipeline          = ManagementPipelineBuilder.Build(tokenCredential, endpoint, options);
            _subscriptionId    = subscriptionId;
            _endpoint          = endpoint;
        }
 public EventHubsManagementClient(string subscriptionId, TokenCredential tokenCredential, EventHubsManagementClientOptions options = null) : this(subscriptionId, null, tokenCredential, options)
 {
 }