Csharp, Dotnet, Aspnet, Mutex, Dotnet Core.
securitySettings.AddAccessRule(accessRule); using (var mutex = new Mutex(false, "Global\\PdfConversion", out _, securitySettings)) { try { // Attempt to acquire the mutex // Waiting up to 2 minutes for availability mutex.WaitOne(120000); // If acquired, run the document conversion process return