Hangfire Best Practice: Invoke by ID

added by DotNetKicks
6/16/2016 8:17:35 AM

3 Kicks, 804 Views

In my previous post, I created a few extension methods for Hangfire and MediatR in order to enqueue an IRequest. However, it was not following Hangfire Best Practice. The purpose was to have the IRequest serialized entirely when calling Enqueue(), which would be stored in Hangfires storage.