I’m trying to use the Hangfire with UseMemoryStorage it is means that I want to use without SQLServer. The problem is it only works once while the application is starting after that does not start the trigger of Schedule again and I don’t know how could I do it works ?
How could I do this works ?
Startup.cs
public partial class Startup{
public void Configuration(IAppBuilder app){
GlobalConfiguration.Configuration.UseMemoryStorage();
app.UseHangfireServer();
BackgroundJob.Schedule(() => Debug.WriteLine("Hello World !"),
TimeSpan.FromSeconds(5));
ConfigureAuth(app);
}
}