Adding HostedService to module Startup #14380
Answered
by
lampersky
adamico2412
asked this question in
Q&A
-
Is it possible to add an IHostedService inside a module's Startup class? After attempting to do so, the hosted service never runs. I know there are background tasks, but I need a service that runs continuously in the background. Thanks for any help in advance. |
Beta Was this translation helpful? Give feedback.
Answered by
lampersky
Sep 21, 2023
Replies: 1 comment
-
@adamico2412 HostedService is not supported inside modules. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
adamico2412
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@adamico2412 HostedService is not supported inside modules.
You can read more about possible workarounds here: #8409 (comment)