storagecontextlib
A unified abstraction library for Azure Blob Storage and Amazon S3 operations with advanced features including: ✓ Multi-cloud support (Azure Blob Storage, Amazon S3) ✓ Multi-framework support (.NET 8.0, 9.0, 10.0) ✓ Batch operations for high-performance file processing (ReadBatch, WriteBatch, CopyBatch) ✓ Streaming support with chunked downloads for large files ✓ Async enumerable streaming for memory-efficient processing ✓ Built-in retry logic with exponential backoff ✓ Cross-storage account copy operations ✓ Directory listing with pattern matching ✓ Move operations with overwrite support ✓ Background service for connection pool management Perfect for applications requiring cloud-agnostic storage operations with enterprise-grade reliability. ## Quick Start // Configure multiple storage accounts services.AddSingleton<IEnumerable<IBlobStorageService>>(ctx => { var storageContext = new MultiContext { Azureprops = configuration.GetSection("AzureContext").Get<List<AzureStorageProps>>(), Amazonprops = configuration.GetSection("AmazonContext").Get<List<AmazonStorageProps>>() }; return storageContext.CreateService(); }); // Use in your services var storage = _storageServices.instance("myaccount", "container"); await storage.UploadBlobAsync("path/file.pdf", stream); var downloadStream = await storage.DownloadBlobAsync("path/file.pdf"); See GitHub repository for detailed examples and documentation.
nuget.org
1.0.32
about 11 hours ago
21
4,820 total
Links
| Registry | nuget.org |
| Homepage | Homepage |
| JSON API | View JSON |
| CodeMeta | codemeta.json |