3 instantiations of FileLock
Aspire.Hosting.Dotnet (3)
src\Shared\FileLock.cs (3)
49
return new
FileLock
(CreateLockStream(lockPath));
68
return new
FileLock
(CreateLockStream(lockPath));
119
return new
FileLock
(CreateLockStream(lockPath));
8 references to FileLock
Aspire.Hosting.Dotnet (8)
DotnetProjectBuildArtifactManager.cs (2)
56
using
var
coordinationLock = await
FileLock
.AcquireAsync(coordinationLockPath, cancellationToken).ConfigureAwait(false);
src\Shared\FileLock.cs (6)
45
public static
FileLock
Acquire(string lockPath)
57
/// <returns>A <see cref="
FileLock
"/> that releases the lock when disposed.</returns>
59
public static
FileLock
Acquire(string lockPath, TimeSpan timeout)
85
public static
FileLock
? TryAcquire(string lockPath)
104
/// <returns>A <see cref="
FileLock
"/> that releases the lock when disposed.</returns>
106
public static async Task<
FileLock
> AcquireAsync(string lockPath, CancellationToken cancellationToken = default, TimeSpan? timeout = null)