3 writes to ConnectionString
Aspire.Azure.Messaging.EventHubs (1)
AzureMessagingEventHubsSettings.cs (1)
146ConnectionString = connectionString;
Aspire.Azure.Messaging.EventHubs.Tests (2)
AspireEventHubsExtensionsTests.cs (2)
392s_keyedClientAdders[clientIndex](builder, "eh", settings => settings.ConnectionString = EhConnectionString); 396s_clientAdders[clientIndex](builder, "eh", settings => settings.ConnectionString = EhConnectionString);
32 references to ConnectionString
Aspire.Azure.Messaging.EventHubs (31)
AspireEventHubsExtensions.cs (10)
29/// <exception cref="InvalidOperationException">Thrown when neither <see cref="AzureMessagingEventHubsSettings.ConnectionString"/> nor <see cref="AzureMessagingEventHubsSettings.FullyQualifiedNamespace"/> is provided.</exception> 52/// <exception cref="InvalidOperationException">Thrown when neither <see cref="AzureMessagingEventHubsSettings.ConnectionString"/> nor <see cref="AzureMessagingEventHubsSettings.FullyQualifiedNamespace"/> is provided.</exception> 75/// <exception cref="InvalidOperationException">Thrown when neither <see cref="AzureMessagingEventHubsSettings.ConnectionString"/> nor <see cref="AzureMessagingEventHubsSettings.FullyQualifiedNamespace"/> is provided.</exception> 98/// <exception cref="InvalidOperationException">Thrown when neither <see cref="AzureMessagingEventHubsSettings.ConnectionString"/> nor <see cref="AzureMessagingEventHubsSettings.FullyQualifiedNamespace"/> is provided.</exception> 121/// <exception cref="InvalidOperationException">Thrown when neither <see cref="AzureMessagingEventHubsSettings.ConnectionString"/> nor <see cref="AzureMessagingEventHubsSettings.FullyQualifiedNamespace"/> is provided.</exception> 144/// <exception cref="InvalidOperationException">Thrown when neither <see cref="AzureMessagingEventHubsSettings.ConnectionString"/> nor <see cref="AzureMessagingEventHubsSettings.FullyQualifiedNamespace"/> is provided.</exception> 167/// <exception cref="InvalidOperationException">Thrown when neither <see cref="AzureMessagingEventHubsSettings.ConnectionString"/> nor <see cref="AzureMessagingEventHubsSettings.FullyQualifiedNamespace"/> is provided.</exception> 192/// <exception cref="InvalidOperationException">Thrown when neither <see cref="AzureMessagingEventHubsSettings.ConnectionString"/> nor <see cref="AzureMessagingEventHubsSettings.FullyQualifiedNamespace"/> is provided.</exception> 215/// <exception cref="InvalidOperationException">Thrown when neither <see cref="AzureMessagingEventHubsSettings.ConnectionString"/> nor <see cref="AzureMessagingEventHubsSettings.FullyQualifiedNamespace"/> is provided.</exception> 238/// <exception cref="InvalidOperationException">Thrown when neither <see cref="AzureMessagingEventHubsSettings.ConnectionString"/> nor <see cref="AzureMessagingEventHubsSettings.FullyQualifiedNamespace"/> is provided.</exception>
AzureMessagingEventHubsSettings.cs (1)
28/// If <see cref="ConnectionString"/> is set, it overrides <see cref="FullyQualifiedNamespace"/> and <see cref="Credential"/>.
EventHubBufferedProducerClientComponent.cs (3)
38if (string.IsNullOrEmpty(settings.ConnectionString)) 46return new EventHubBufferedProducerClient(settings.ConnectionString, options); 49return new EventHubBufferedProducerClient(settings.ConnectionString, settings.EventHubName, options);
EventHubConsumerClientComponent.cs (3)
39if (string.IsNullOrEmpty(settings.ConnectionString)) 47return new EventHubConsumerClient(consumerGroup, settings.ConnectionString, options); 50return new EventHubConsumerClient(consumerGroup, settings.ConnectionString, settings.EventHubName, options);
EventHubProducerClientComponent.cs (3)
37if (string.IsNullOrEmpty(settings.ConnectionString)) 45return new EventHubProducerClient(settings.ConnectionString, options); 48return new EventHubProducerClient(settings.ConnectionString, settings.EventHubName, options);
EventHubsComponent.cs (5)
45_healthCheckClient = !string.IsNullOrEmpty(settings.ConnectionString) ? 46new EventHubProducerClient(settings.ConnectionString, producerClientOptions) : 83? EventHubsConnectionStringProperties.Parse(settings.ConnectionString).Endpoint.Host 110var connectionString = settings.ConnectionString; 121if (!string.IsNullOrWhiteSpace(settings.ConnectionString))
EventProcessorClientComponent.cs (3)
51if (string.IsNullOrEmpty(settings.ConnectionString)) 63settings.ConnectionString, options); 68settings.ConnectionString,
PartitionReceiverClientComponent.cs (3)
46if (string.IsNullOrEmpty(settings.ConnectionString)) 63settings.ConnectionString, 71settings.ConnectionString,
Aspire.Azure.Messaging.EventHubs.Tests (1)
AspireEventHubsExtensionsTests.cs (1)
659Assert.Equal(testInfo.ConnectionString, settings.ConnectionString);