79353829

Date: 2025-01-14 02:08:58
Score: 1.5
Natty:
Report link

With version 1.8 and above DisableConcurrentExecution should support this by passing a string format that will format the method's parameters.

[DisableConcurrentExecution("Id:{0}", 10)]
void Do(int id) { }

I couldn't find documentation, but here is the commit that added this feature.

This article also mentions it at 4. Prevent Concurrent execution of Hangfire jobs

Reasons:
  • Blacklisted phrase (1): This article
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: PPatrik