I have an Asp.Net Core MVC app. Added Hangfire & Hangfire.Core to it and everything seemed ok until the first cycle and the fact that the app seems to run program.cs host.Run(); for every cycle causing the app to try to restart the same url+port more than once resulting in this error:
info: Hangfire.BackgroundJobServer[0]
Schedule polling interval: 00:00:15
dbug: Hangfire.Server.BackgroundProcessingServer[0]
Background process ‘BackgroundProcessingServer’ started.
Unhandled Exception: System.AggregateException: One or more errors occurred. (Error -4091 EADDRINUSE address already in use) —> Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvException: Error -4091 EADDRINUSE address already in use