Microsoft.Identity.Client.ManagedIdentity.V2.InterprocessLock static class InterprocessLock Documentation Code public static string GetMutexNameForAlias(string alias, bool preferGlobal = true) public static bool TryWithAliasLock(string alias, TimeSpan timeout, Action action, Action<string> logVerbose)