This repository is used to implement Azure Blob operations.
Consists of two projects
- DocumentEngine: has all the logic to perform blob operations
- DocumentEngineTest: has unit tests to test blob operations.
Blob operations which are covered in this repository are:
- Upload a single file – with bytes or text content
- Bulk upload files – with bytes or text content Using parallel programming to upload number of files parallelly
- Download file – bytes or text
- Delete a file
Using Polly for retry mechanism. - Polly is a .NET resilience and transient-fault-handling library that allows developers to express policies such as Retry, Circuit Breaker, Timeout, Bulkhead Isolation, and Fallback in a fluent and thread-safe manner.
To instantiate the BlobActions class you need azure storage account, storage key, container name, max retry value to perform blob operations and logger object
_documentActions = new BlobActions("_Enter_AzureStorageName_", "_Enter_AzureStorageKey_", "_containerName_", "_maxRetryValue_", _logger);
Enter these values and you will be able to perform the blob operations.
It is wriiten in asp.net core framework