Skip to content

Background Worker #51

Closed Answered by mythz
luigixiv asked this question in Q&A
Jan 30, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

You can dynamically load an Assembly and call a method on App Startup that's run in a background thread which will run until it fails or is aborted.

But HttpListener Apps are typically run as a stand-alone Web Server, I've not heard of anyone running them inside IIS, which given IIS recycles App Domains I wouldn't think it's a good choice for long running Services unless it's configured to never recycle Apps.

You can run HttpListener Apps as a stand-alone Console App or run it inside a Windows Service as done in the winservice-netfx project template.

Whilst newer ASP .NET Core Apps can use Worker Services for long running services of which we have project templates for them on ServiceStac…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@luigixiv
Comment options

@mythz
Comment options

Answer selected by luigixiv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants