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)
233using var deploymentLease = await AcquireDeploymentLeaseAsync( 828internal static async Task<FileLock?> AcquireDeploymentLeaseAsync( 850return await FileLock.AcquireAsync(lockPath, cancellationToken).ConfigureAwait(false); 1273using var deploymentLease = await AcquireDeploymentLeaseAsync( 1367using 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)
2708var firstLease = await AzureSandboxContainerDeployment.AcquireDeploymentLeaseAsync( 2727using var secondLease = await secondLeaseTask;