You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The BlobServiceClient is created before the health check is run.
138
139
// We can't use ConnectionStringAvailableEvent here because the resource doesn't have a connection string, so
139
140
// we use BeforeResourceStartedEvent
140
141
141
-
varconnectionString=awaitbuilder.Resource.GetBlobConnectionString().GetValueAsync(ct).ConfigureAwait(false)??thrownewDistributedApplicationException($"{nameof(ConnectionStringAvailableEvent)} was published for the '{builder.Resource.Name}' resource but the connection string was null.");
??thrownewDistributedApplicationException($"{nameof(ConnectionStringAvailableEvent)} was published for the '{builder.Resource.Name}' resource but the connection string was null.");
@@ -284,7 +284,7 @@ public static IResourceBuilder<AzureStorageEmulatorResource> WithApiVersionCheck
284
284
/// <summary>
285
285
/// Creates a builder for the <see cref="AzureBlobStorageResource"/> which can be referenced to get the Azure Storage blob endpoint for the storage account.
286
286
/// </summary>
287
-
/// <param name="builder">The <see cref="IResourceBuilder{T}"/> for <see cref="AzureStorageResource"/>/</param>
287
+
/// <param name="builder">The <see cref="IResourceBuilder{T}"/> for <see cref="AzureStorageResource"/>.</param>
288
288
/// <param name="name">The name of the resource.</param>
289
289
/// <returns>An <see cref="IResourceBuilder{T}"/> for the <see cref="AzureBlobStorageResource"/>.</returns>
/// Creates a builder for the <see cref="AzureBlobStorageContainerResource"/> which can be referenced to get the Azure Storage blob container endpoint for the storage account.
316
320
/// </summary>
317
-
/// <param name="builder">The <see cref="IResourceBuilder{T}"/> for <see cref="AzureBlobStorageResource"/>/</param>
321
+
/// <param name="builder">The <see cref="IResourceBuilder{T}"/> for <see cref="AzureBlobStorageResource"/>.</param>
318
322
/// <param name="name">The name of the resource.</param>
319
323
/// <param name="blobContainerName">The name of the blob container.</param>
320
324
/// <returns>An <see cref="IResourceBuilder{T}"/> for the <see cref="AzureBlobStorageContainerResource"/>.</returns>
@@ -343,13 +347,14 @@ public static IResourceBuilder<AzureBlobStorageContainerResource> AddBlobContain
/// Creates a builder for the <see cref="AzureTableStorageResource"/> which can be referenced to get the Azure Storage tables endpoint for the storage account.
351
356
/// </summary>
352
-
/// <param name="builder">The <see cref="IResourceBuilder{T}"/> for <see cref="AzureStorageResource"/>/</param>
357
+
/// <param name="builder">The <see cref="IResourceBuilder{T}"/> for <see cref="AzureStorageResource"/>.</param>
353
358
/// <param name="name">The name of the resource.</param>
354
359
/// <returns>An <see cref="IResourceBuilder{T}"/> for the <see cref="AzureTableStorageResource"/>.</returns>
@@ -364,7 +369,7 @@ public static IResourceBuilder<AzureTableStorageResource> AddTables(this IResour
364
369
/// <summary>
365
370
/// Creates a builder for the <see cref="AzureQueueStorageResource"/> which can be referenced to get the Azure Storage queues endpoint for the storage account.
366
371
/// </summary>
367
-
/// <param name="builder">The <see cref="IResourceBuilder{T}"/> for <see cref="AzureStorageResource"/>/</param>
372
+
/// <param name="builder">The <see cref="IResourceBuilder{T}"/> for <see cref="AzureStorageResource"/>.</param>
368
373
/// <param name="name">The name of the resource.</param>
369
374
/// <returns>An <see cref="IResourceBuilder{T}"/> for the <see cref="AzureQueueStorageResource"/>.</returns>
thrownewInvalidOperationException($"A QueueServiceClient could not be configured. Ensure valid connection information was provided in 'ConnectionStrings:{connectionName}' or specify a 'ConnectionString' or 'ServiceUri' in the '{configurationSectionName}' configuration section.");
/// Provides extension methods for registering <see cref="QueueServiceClient"/> as a singleton in the services provided by the <see cref="IHostApplicationBuilder"/>.
19
13
/// Enables retries, corresponding health check, logging and telemetry.
/// Registers <see cref="QueueServiceClient"/> as a singleton in the services provided by the <paramref name="builder"/>.
27
-
/// Enables retries, corresponding health check, logging and telemetry.
20
+
/// Registers <see cref="QueueServiceClient"/> as a singleton in the services provided by the <paramref name="builder"/>.
21
+
/// Enables retries, corresponding health check, logging and telemetry.
28
22
/// </summary>
29
23
/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param>
30
24
/// <param name="connectionName">A name used to retrieve the connection string from the ConnectionStrings configuration section.</param>
31
-
/// <param name="configureSettings">An optional method that can be used for customizing the <see cref="AzureStorageQueuesSettings"/>. It's invoked after the settings are read from the configuration.</param>
32
-
/// <param name="configureClientBuilder">An optional method that can be used for customizing the <see cref="IAzureClientBuilder{TClient, TOptions}"/>.</param>
25
+
/// <param name="configureSettings">
26
+
/// An optional method that can be used for customizing the <see cref="AzureStorageQueuesSettings"/>. It's invoked after
27
+
/// the settings are read from the configuration.
28
+
/// </param>
29
+
/// <param name="configureClientBuilder">
30
+
/// An optional method that can be used for customizing the <see cref="IAzureClientBuilder{TClient, TOptions}"/>.
31
+
/// </param>
33
32
/// <remarks>Reads the configuration from "Aspire:Azure:Storage:Queues" section.</remarks>
34
-
/// <exception cref="InvalidOperationException">Thrown when neither <see cref="AzureStorageQueuesSettings.ConnectionString"/> nor <see cref="AzureStorageQueuesSettings.ServiceUri"/> is provided.</exception>
33
+
/// <exception cref="InvalidOperationException">
34
+
/// Neither <see cref="AzureStorageQueuesSettings.ConnectionString"/> nor <see cref="AzureStorageQueuesSettings.ServiceUri"/> is provided.
35
+
/// </exception>
35
36
publicstaticvoidAddAzureQueueClient(
36
37
thisIHostApplicationBuilderbuilder,
37
38
stringconnectionName,
@@ -45,15 +46,26 @@ public static void AddAzureQueueClient(
45
46
}
46
47
47
48
/// <summary>
48
-
/// Registers <see cref="QueueServiceClient"/> as a singleton for given <paramref name="name"/> in the services provided by the <paramref name="builder"/>.
49
-
/// Enables retries, corresponding health check, logging and telemetry.
49
+
/// Registers <see cref="QueueServiceClient"/> as a singleton for given <paramref name="name"/> in the services provided
50
+
/// by the <paramref name="builder"/>.
51
+
/// Enables retries, corresponding health check, logging and telemetry.
50
52
/// </summary>
51
53
/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param>
52
-
/// <param name="name">The name of the component, which is used as the <see cref="ServiceDescriptor.ServiceKey"/> of the service and also to retrieve the connection string from the ConnectionStrings configuration section.</param>
53
-
/// <param name="configureSettings">An optional method that can be used for customizing the <see cref="AzureStorageQueuesSettings"/>. It's invoked after the settings are read from the configuration.</param>
54
-
/// <param name="configureClientBuilder">An optional method that can be used for customizing the <see cref="IAzureClientBuilder{TClient, TOptions}"/>.</param>
54
+
/// <param name="name">
55
+
/// The name of the component, which is used as the <see cref="ServiceDescriptor.ServiceKey"/> of the service
56
+
/// and also to retrieve the connection string from the ConnectionStrings configuration section.
57
+
/// </param>
58
+
/// <param name="configureSettings">
59
+
/// An optional method that can be used for customizing the <see cref="AzureStorageQueuesSettings"/>.
60
+
/// It's invoked after the settings are read from the configuration.
61
+
/// </param>
62
+
/// <param name="configureClientBuilder">
63
+
/// An optional method that can be used for customizing the <see cref="IAzureClientBuilder{TClient, TOptions}"/>.
64
+
/// </param>
55
65
/// <remarks>Reads the configuration from "Aspire:Azure:Storage:Queues:{name}" section.</remarks>
56
-
/// <exception cref="InvalidOperationException">Thrown when neither <see cref="AzureStorageQueuesSettings.ConnectionString"/> nor <see cref="AzureStorageQueuesSettings.ServiceUri"/> is provided.</exception>
66
+
/// <exception cref="InvalidOperationException">
67
+
/// Neither <see cref="AzureStorageQueuesSettings.ConnectionString"/> nor <see cref="AzureStorageQueuesSettings.ServiceUri"/> is provided.
68
+
/// </exception>
57
69
publicstaticvoidAddKeyedAzureQueueClient(
58
70
thisIHostApplicationBuilderbuilder,
59
71
stringname,
@@ -65,54 +77,4 @@ public static void AddKeyedAzureQueueClient(
thrownewInvalidOperationException($"A QueueServiceClient could not be configured. Ensure valid connection information was provided in 'ConnectionStrings:{connectionName}' or specify a 'ConnectionString' or 'ServiceUri' in the '{configurationSectionName}' configuration section.");
0 commit comments