I have added Hangfire to services but still get
“Unable to find the required services. Please add all the required services by calling ‘IServiceCollection.AddHangfire’ inside the call to ‘ConfigureServices(…)’ in the application startup code.”
when calling app.UseHangfireServer();
I’m using Hangfire 1.6.1 in Dotnet Core 1.0.
services.AddHangfire(config =>
{
config.UseSqlServerStorage(connectionString);
config.UseActivator(new AutofacJobActivator(container));
});
Any ideas what is wrong?