Storage abstraction for SimpleModule with a pluggable provider interface for file storage backends.
dotnet add package SimpleModule.Storagepublic class MyService(IStorageProvider storage)
{
public async Task UploadAsync(Stream file, string path)
{
await storage.UploadAsync(path, file);
}
}| Provider | Package |
|---|---|
| Local filesystem | SimpleModule.Storage.Local |
| Azure Blob Storage | SimpleModule.Storage.Azure |
| AWS S3 | SimpleModule.Storage.S3 |
- IStorageProvider interface for upload, download, list, and delete operations
- Provider-agnostic -- swap storage backends without changing application code
- Stream-based API for efficient large file handling