Csharp, Dotnet, Aspnet, Mutex, Dotnet Core.
} finally { // Always release the mutex when done to allow other processes to use the resource mutex.ReleaseMutex(); } } Testing I ran multiple simultaneous requests to test the application using the PowerShell command: Start-Job {Invoke-WebRequest -Uri https://localhost:1000/api/download/1