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)
253using var deploymentLease = await AcquireDeploymentLeaseAsync( 843internal static async Task<FileLock?> AcquireDeploymentLeaseAsync( 865return await FileLock.AcquireAsync(lockPath, cancellationToken).ConfigureAwait(false); 1315using var deploymentLease = await AcquireDeploymentLeaseAsync( 1409using 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)
3219var firstLease = await AzureSandboxContainerDeployment.AcquireDeploymentLeaseAsync( 3238using var secondLease = await secondLeaseTask;