I'm trying to use Hangfire MySqlStorage in Web API app with mysql DB. I installed NuGet package "Hangfire.MySqlStorage" version 1.0.3. When I'm configuring Hangfire I'm getting following error,
HttpConfiguration does not contain a definition for 'UseStorage' and no extension method 'UseStorage' accepting a first argument of type 'HttpConfiguration' could be found (are you missing a using directive or an assembly reference?)
Seems I'm missing a reference here. Could not figure out.
It seems you are calling the method on the wrong object.
It should be, as per the documentation:
Where
GlobalConfiguration
is actuallyHangfire.GlobalConfiguration
from the Hangfire.Core library.