The order of starting/stopping IHostedService
s in generic host
#28540
-
Hi! I've stumbled on a small problem - the order in which The reversed order might make more sense if you have two I wasn't able to find any reasoning why the order is the way it is, so - why is that? Is this "by design"? If so, what would you suggest as a workaround (I'm currently experimenting with custom ordering but I'm not quite sure whether this is a viable option)? Or am I just missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Okay, so I finally got to the correct place. During the initial investigation overlooked the correct implementation which is... in the generic host. :) I was searching through the now-deprecated Using the correct host completely solves my problem. :) |
Beta Was this translation helpful? Give feedback.
Okay, so I finally got to the correct place. During the initial investigation overlooked the correct implementation which is... in the generic host. :) I was searching through the now-deprecated
Microsoft.AspNetCore.Hosting.Host
believing that it is the go-to implementation.Using the correct host completely solves my problem. :)