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

            options ??= new EventHubManagementClientOptions();
            _clientDiagnostics = new ClientDiagnostics(options);
            _pipeline          = ManagementPipelineBuilder.Build(tokenCredential, endpoint, options);
            _subscriptionId    = subscriptionId;
            _endpoint          = endpoint;
        }
Esempio n. 2
0
 public EventHubManagementClient(string subscriptionId, TokenCredential tokenCredential, EventHubManagementClientOptions options = null) : this(subscriptionId, null, tokenCredential, options)
 {
 }