Class BlobStorageExtensions
- Namespace
- FoundationaLLM.Common.Extensions
- Assembly
- FoundationaLLM.Common.dll
Extends Azure Blob Storage classes with helper methods.
public static class BlobStorageExtensions
- Inheritance
-
BlobStorageExtensions
- Inherited Members
Methods
AcquireAsyncWithWait(BlobLeaseClient, TimeSpan, int, int, CancellationToken)
Attempts to acquire a lease on a blob item using a retry pattern.
public static Task<BlobLease?> AcquireAsyncWithWait(this BlobLeaseClient blobLeaseClient, TimeSpan duration, int maxRetryCount = 5, int retryWaitSeconds = 5, CancellationToken cancellationToken = default)
Parameters
blobLeaseClient
BlobLeaseClientThe BlobLeaseClient client used to acquire the lease.
duration
TimeSpanThe TimeSpan specifying the intended duration of the lease.
maxRetryCount
intThe maximum number of attempts to acquire the lease.
retryWaitSeconds
intThe number of seconds to wait between subsequent attempts to acquire the lease.
cancellationToken
CancellationTokenThe CancellationToken that signals the cancellation of the procedure.