Csharp, Dotnet, Aspnet, Mutex, Dotnet Core.
RunConversion(doc); } catch (AbandonedMutexException) { // If the mutex was abandoned, release it and try to acquire it again mutex.ReleaseMutex(); // Wait again up to 2 minutes for the mutex mutex.WaitOne(120000); // Once acquired, re-run the document conversion process return RunConversion(doc);