-
-
Notifications
You must be signed in to change notification settings - Fork 73
Object Storage
- AWS S3 Storage
- Cloudflare R2 Storage
- MinIO Storage
- DigitalOcean Spaces Storage
- Wasabi Storage
- Backblaze B2 Storage
- Hetzner Storage
- Vultr Storage
- Google Cloud Storage
- Alibaba OSS Storage
- Azure Blob Storage
- Azure File Storage
- Azure Data Lake
- Azure Key Vault
- In-Memory, Local Disk & ZIP
- FTP & FTPS Storage
- SFTP Storage
All of the API methods are defined in the IStore interface.
However Azure Blob Storage supports blob leasing, shared access signatures, and implements IAzureBlobStorage that extends the functionality further.
All the storage implementations can be created directly using factory API in the factory classes.
You can also use connection strings to create blob storage instances. Connection strings are often useful if you want to completely abstract yourself from the underlying implementation. Please read the appropriate implementation details for connection string details.
For instance, to create an instance of Azure Blob Storage provider you could write:
IStore storage = StorageFactory.FromConnectionString("azure.blobs://...parameters...");In this example we create an Azure blob storage, then upload and download a text string to a blob.
IStore storage = AzureBlobStorage.FromSharedKey("storage name","storage key");
// upload it
await store.SetText("mycontainer/someid", "test content");
// download it
string content = await store.GetText("mycontainer/someid");