Hi.
I follow this link:
I have deployed Hangfire successed (hosted in console app) but when I exit console app and restart console, the number Hangfire Server increase. So how can I shutdown Hangfire when console app exit.
Thanks.
Hi.
I follow this link:
I have deployed Hangfire successed (hosted in console app) but when I exit console app and restart console, the number Hangfire Server increase. So how can I shutdown Hangfire when console app exit.
Thanks.
I am not sure if this is correct way but I have a similar console application for testing purposes and I shutdown it like below
var defaultJobServer = new BackgroundJobServer(defaultOptions);
System.Console.ReadLine();
defaultJobServer.Dispose();