3 instantiations of FileLock
Aspire.Hosting.Azure.Sandboxes (3)
src\Shared\FileLock.cs (3)
49return new FileLock(CreateLockStream(lockPath)); 68return new FileLock(CreateLockStream(lockPath)); 119return new FileLock(CreateLockStream(lockPath));
13 references to FileLock
Aspire.Hosting.Azure.Sandboxes (11)
AzureSandboxContainerDeployment.cs (5)
251using var deploymentLease = await AcquireDeploymentLeaseAsync( 841internal static async Task<FileLock?> AcquireDeploymentLeaseAsync( 863return await FileLock.AcquireAsync(lockPath, cancellationToken).ConfigureAwait(false); 1313using var deploymentLease = await AcquireDeploymentLeaseAsync( 1407using var deploymentLease = await AcquireDeploymentLeaseAsync(
src\Shared\FileLock.cs (6)
45public static FileLock Acquire(string lockPath) 57/// <returns>A <see cref="FileLock"/> that releases the lock when disposed.</returns> 59public static FileLock Acquire(string lockPath, TimeSpan timeout) 85public static FileLock? TryAcquire(string lockPath) 104/// <returns>A <see cref="FileLock"/> that releases the lock when disposed.</returns> 106public static async Task<FileLock> AcquireAsync(string lockPath, CancellationToken cancellationToken = default, TimeSpan? timeout = null)
Aspire.Hosting.Azure.Tests (2)
AzureSandboxesTests.cs (2)
3292var firstLease = await AzureSandboxContainerDeployment.AcquireDeploymentLeaseAsync( 3311using var secondLease = await secondLeaseTask;