Skip to content
Docs Try Aspire

AspireBlobStorageExtensions

Class static net10.0
📦 Aspire.Azure.Storage.Blobs v13.1.2
Provides extension methods for registering Blobs.BlobServiceClient as a singleton in the services provided by the Hosting.IHostApplicationBuilder.
namespace Microsoft.Extensions.Hosting;
public static class AspireBlobStorageExtensions
{
// ...
}
AddAzureBlobClient(IHostApplicationBuilder, string, Action<AzureStorageBlobsSettings>, Action<IAzureClientBuilder<BlobServiceClient, BlobClientOptions>>)extensionobsolete
Registers Blobs.BlobServiceClient as a singleton in the services provided by the builder. Enables retries, corresponding health check, logging and telemetry.
AddAzureBlobContainerClient(IHostApplicationBuilder, string, Action<AzureBlobStorageContainerSettings>, Action<IAzureClientBuilder<BlobContainerClient, BlobClientOptions>>)extension
Registers Blobs.BlobContainerClient as a singleton in the services provided by the builder. Enables retries, corresponding health check, logging and telemetry.
AddAzureBlobServiceClient(IHostApplicationBuilder, string, Action<AzureStorageBlobsSettings>, Action<IAzureClientBuilder<BlobServiceClient, BlobClientOptions>>)extension
Registers Blobs.BlobServiceClient as a singleton in the services provided by the builder. Enables retries, corresponding health check, logging and telemetry.
AddKeyedAzureBlobClient(IHostApplicationBuilder, string, Action<AzureStorageBlobsSettings>, Action<IAzureClientBuilder<BlobServiceClient, BlobClientOptions>>)extensionobsolete
Registers Blobs.BlobServiceClient as a singleton for given name in the services provided by the builder. Enables retries, corresponding health check, logging and telemetry.
AddKeyedAzureBlobContainerClient(IHostApplicationBuilder, string, Action<AzureBlobStorageContainerSettings>, Action<IAzureClientBuilder<BlobContainerClient, BlobClientOptions>>)extension
Registers Blobs.BlobContainerClient as a singleton in the services provided by the builder. Enables retries, corresponding health check, logging and telemetry.
AddKeyedAzureBlobServiceClient(IHostApplicationBuilder, string, Action<AzureStorageBlobsSettings>, Action<IAzureClientBuilder<BlobServiceClient, BlobClientOptions>>)extension
Registers Blobs.BlobServiceClient as a singleton for given name in the services provided by the builder. Enables retries, corresponding health check, logging and telemetry.
View all methods