<PackageReference Include="Microsoft.Identity.Client.Extensions.Msal" Version="4.85.0" />

Microsoft.Identity.Client.Extensions.Msal.CrossPlatLock

public sealed class CrossPlatLock : IDisposable
A cross-process lock that works on all platforms, implemented using files. Does not ensure thread safety, i.e. 2 threads from the same process will pass through this lock.
namespace Microsoft.Identity.Client.Extensions.Msal { public sealed class CrossPlatLock : IDisposable { public CrossPlatLock(string lockfilePath, int lockFileRetryDelay = 100, int lockFileRetryCount = 600); public void Dispose(); } }