3 writes to ConnectionString
Aspire.Azure.Messaging.EventHubs (1)
AzureMessagingEventHubsSettings.cs (1)
146
ConnectionString
= connectionString;
Aspire.Azure.Messaging.EventHubs.Tests (2)
AspireEventHubsExtensionsTests.cs (2)
392
s_keyedClientAdders[clientIndex](builder, "eh", settings => settings.
ConnectionString
= EhConnectionString);
396
s_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)
38
if (string.IsNullOrEmpty(settings.
ConnectionString
))
46
return new EventHubBufferedProducerClient(settings.
ConnectionString
, options);
49
return new EventHubBufferedProducerClient(settings.
ConnectionString
, settings.EventHubName, options);
EventHubConsumerClientComponent.cs (3)
39
if (string.IsNullOrEmpty(settings.
ConnectionString
))
47
return new EventHubConsumerClient(consumerGroup, settings.
ConnectionString
, options);
50
return new EventHubConsumerClient(consumerGroup, settings.
ConnectionString
, settings.EventHubName, options);
EventHubProducerClientComponent.cs (3)
37
if (string.IsNullOrEmpty(settings.
ConnectionString
))
45
return new EventHubProducerClient(settings.
ConnectionString
, options);
48
return new EventHubProducerClient(settings.
ConnectionString
, settings.EventHubName, options);
EventHubsComponent.cs (5)
45
_healthCheckClient = !string.IsNullOrEmpty(settings.
ConnectionString
) ?
46
new EventHubProducerClient(settings.
ConnectionString
, producerClientOptions) :
83
? EventHubsConnectionStringProperties.Parse(settings.
ConnectionString
).Endpoint.Host
110
var connectionString = settings.
ConnectionString
;
121
if (!string.IsNullOrWhiteSpace(settings.
ConnectionString
))
EventProcessorClientComponent.cs (3)
51
if (string.IsNullOrEmpty(settings.
ConnectionString
))
63
settings.
ConnectionString
, options);
68
settings.
ConnectionString
,
PartitionReceiverClientComponent.cs (3)
46
if (string.IsNullOrEmpty(settings.
ConnectionString
))
63
settings.
ConnectionString
,
71
settings.
ConnectionString
,
Aspire.Azure.Messaging.EventHubs.Tests (1)
AspireEventHubsExtensionsTests.cs (1)
659
Assert.Equal(testInfo.ConnectionString, settings.
ConnectionString
);