Hangfire.Console icon indicating copy to clipboard operation
Hangfire.Console copied to clipboard

Fix concurrency issues

Open ffMathy opened this issue 5 years ago • 0 comments

The UseConsole call may fail if evaluated concurrently (for instance a test runner running multiple integration tests in parallel).

This should never happen.

It seems to happen because an Contains call to the RouteCollection fails, because the collection has been modified by something else in the meanwhile.

Perhaps we should throw a lock statement around the call?

ffMathy avatar Feb 19 '20 09:02 ffMathy