I'm trying to setup hangfire, but since there has been a few version throughout the history and different setups for ASP.NET and ASP.NET Core applications I'm not sure which one to use.
In Startup.cs in ConfigureServices I use
AddHangfire() and AddHangfireServer() extension methods, but I can see there is also UseHangfireServer() on IApplicationBuilder in Configure method. Currently I'm using only AddHangfireServer(), but I'm not sure if I need the other one?
Same thing is for UseHangfireDashboard() on IApplicationBuilder and MapHangfireDashboard() on IEndpointRouteBuilder within UseEndpoints(). Currently I'm using only MapHangfireDashboard().
Though everything seems to work, I'm not sure if everything will behave correctly along the way (I'm not gonna test the whole hangfire just to make sure...), so do I need to add AddHangfireServer() and UseHangfireDashboard(), especially since some example have them while others don't?