Difference between AddHangfire and AddHangfireServer


#1

Source code looks like AddHangfire adds the service registration, while AddHangfireServer registers hosted service. This sounds like they are completely 2 things and should be called both. However AddHangfireServer isn’t necessary in order to make it work. So what’s the recommended way to set up here?