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
/// Registers <see cref="BlobServiceClient"/> as a singleton in the services provided by the <paramref name="builder"/>.
20
-
/// Enables retries, corresponding health check, logging and telemetry.
19
+
/// Registers <see cref="BlobServiceClient"/> as a singleton in the services provided by the <paramref name="builder"/>.
20
+
/// Enables retries, corresponding health check, logging and telemetry.
21
21
/// </summary>
22
22
/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param>
23
-
/// <param name="connectionName">A name used to retrieve the connection string from the ConnectionStrings configuration section.</param>
24
-
/// <param name="configureSettings">An optional method that can be used for customizing the <see cref="AzureStorageBlobsSettings"/>. It's invoked after the settings are read from the configuration.</param>
25
-
/// <param name="configureClientBuilder">An optional method that can be used for customizing the <see cref="IAzureClientBuilder{TClient, TOptions}"/>.</param>
23
+
/// <param name="connectionName">
24
+
/// A name used to retrieve the connection string from the ConnectionStrings configuration section.
25
+
/// </param>
26
+
/// <param name="configureSettings">
27
+
/// An optional method that can be used for customizing the <see cref="AzureStorageBlobsSettings"/>. It's invoked after 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>
26
32
/// <remarks>Reads the configuration from "Aspire:Azure:Storage:Blobs" section.</remarks>
27
-
/// <exception cref="InvalidOperationException">Thrown when neither <see cref="AzureStorageBlobsSettings.ConnectionString"/> nor <see cref="AzureStorageBlobsSettings.ServiceUri"/> is provided.</exception>
33
+
/// <exception cref="InvalidOperationException">
34
+
/// Neither <see cref="AzureStorageBlobsSettings.ConnectionString"/> nor <see cref="AzureStorageBlobsSettings.ServiceUri"/> is provided.
35
+
/// </exception>
28
36
publicstaticvoidAddAzureBlobClient(
29
37
thisIHostApplicationBuilderbuilder,
30
38
stringconnectionName,
@@ -38,15 +46,25 @@ public static void AddAzureBlobClient(
38
46
}
39
47
40
48
/// <summary>
41
-
/// Registers <see cref="BlobServiceClient"/> as a singleton for given <paramref name="name"/> in the services provided by the <paramref name="builder"/>.
42
-
/// Enables retries, corresponding health check, logging and telemetry.
49
+
/// Registers <see cref="BlobServiceClient"/> as a singleton for given <paramref name="name"/> in the services provided by the <paramref name="builder"/>.
50
+
/// Enables retries, corresponding health check, logging and telemetry.
43
51
/// </summary>
44
52
/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param>
45
-
/// <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>
46
-
/// <param name="configureSettings">An optional method that can be used for customizing the <see cref="AzureStorageBlobsSettings"/>. It's invoked after the settings are read from the configuration.</param>
47
-
/// <param name="configureClientBuilder">An optional method that can be used for customizing the <see cref="IAzureClientBuilder{TClient, TOptions}"/>.</param>
53
+
/// <param name="name">
54
+
/// The name of the component, which is used as the <see cref="ServiceDescriptor.ServiceKey"/> of the service and also to retrieve
55
+
/// the connection string from the ConnectionStrings configuration section.
56
+
/// </param>
57
+
/// <param name="configureSettings">
58
+
/// An optional method that can be used for customizing the <see cref="AzureStorageBlobsSettings"/>.
59
+
/// It's invoked after the settings are read from the configuration.
60
+
/// </param>
61
+
/// <param name="configureClientBuilder">
62
+
/// An optional method that can be used for customizing the <see cref="IAzureClientBuilder{TClient, TOptions}"/>.
63
+
/// </param>
48
64
/// <remarks>Reads the configuration from "Aspire:Azure:Storage:Blobs:{name}" section.</remarks>
49
-
/// <exception cref="InvalidOperationException">Thrown when neither <see cref="AzureStorageBlobsSettings.ConnectionString"/> nor <see cref="AzureStorageBlobsSettings.ServiceUri"/> is provided.</exception>
65
+
/// <exception cref="InvalidOperationException">
66
+
/// Neither <see cref="AzureStorageBlobsSettings.ConnectionString"/> nor <see cref="AzureStorageBlobsSettings.ServiceUri"/> is provided.
67
+
/// </exception>
50
68
publicstaticvoidAddKeyedAzureBlobClient(
51
69
thisIHostApplicationBuilderbuilder,
52
70
stringname,
@@ -60,13 +78,18 @@ public static void AddKeyedAzureBlobClient(
60
78
}
61
79
62
80
/// <summary>
63
-
/// Registers <see cref="BlobContainerClient"/> as a singleton in the services provided by the <paramref name="builder"/>.
64
-
/// Enables retries, corresponding health check, logging and telemetry.
81
+
/// Registers <see cref="BlobContainerClient"/> as a singleton in the services provided by the <paramref name="builder"/>.
82
+
/// Enables retries, corresponding health check, logging and telemetry.
65
83
/// </summary>
66
84
/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param>
67
85
/// <param name="connectionName">A name used to retrieve the connection string from the ConnectionStrings configuration section.</param>
68
-
/// <param name="configureSettings">An optional method that can be used for customizing the <see cref="AzureStorageBlobsSettings"/>. It's invoked after the settings are read from the configuration.</param>
69
-
/// <param name="configureClientBuilder">An optional method that can be used for customizing the <see cref="IAzureClientBuilder{TClient, TOptions}"/>.</param>
86
+
/// <param name="configureSettings">
87
+
/// An optional method that can be used for customizing the <see cref="AzureStorageBlobsSettings"/>.
88
+
/// It's invoked after the settings are read from the configuration.
89
+
/// </param>
90
+
/// <param name="configureClientBuilder">
91
+
/// An optional method that can be used for customizing the <see cref="IAzureClientBuilder{TClient, TOptions}"/>.
92
+
/// </param>
70
93
/// <remarks>Reads the configuration from "Aspire:Azure:Storage:Blobs" section.</remarks>
71
94
/// <exception cref="InvalidOperationException">
72
95
/// Neither <see cref="AzureStorageBlobsSettings.ConnectionString"/> nor <see cref="AzureStorageBlobsSettings.ServiceUri"/> is provided.
@@ -84,4 +107,38 @@ public static void AddAzureBlobContainerClient(
0 commit comments