-
Hi, The client then will call an endpoint in the loaded service which will answer with data from that background task. I hope it is clear. Bye. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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 ServiceStack's Start page. |
Beta Was this translation helpful? Give feedback.
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…