3 instantiations of FileLock
Aspire.Hosting.Dotnet (3)
src\Shared\FileLock.cs (3)
49return new FileLock(CreateLockStream(lockPath)); 68return new FileLock(CreateLockStream(lockPath)); 119return new FileLock(CreateLockStream(lockPath));
8 references to FileLock
Aspire.Hosting.Dotnet (8)
DotnetProjectBuildArtifactManager.cs (2)
56using var coordinationLock = await FileLock.AcquireAsync(coordinationLockPath, cancellationToken).ConfigureAwait(false);
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)