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
blobLeaseClientBlobLeaseClientThe BlobLeaseClient client used to acquire the lease.
durationTimeSpanThe TimeSpan specifying the intended duration of the lease.
maxRetryCountintThe maximum number of attempts to acquire the lease.
retryWaitSecondsintThe number of seconds to wait between subsequent attempts to acquire the lease.
cancellationTokenCancellationTokenThe CancellationToken that signals the cancellation of the procedure.