Any problems running the daemon through XSP2?

We want to run a daemon that exposes itself through ASMX using Mono 2.0 (or later). Instead of accessing the ASP.NET hosting APIs, we only think about starting the daemon stream in the Application_Start event. XSP2 should not restart the application, so our daemon will be safe.

Are there any flaws in this (besides being a bit odd)? Any other approaches that allow us to use our code in the same application as ASMX queries?

+5
source share
1 answer

Why do we need XSP to run the daemon by invoking ASXM when you can just create a console console application (with the same code or accepted arguments)? This can be called in the terminal or called from any shell script and added to cron. A simple server is not required for this.

If you want to do this, and not the way I did, you can configure the base server instance (using nginx, lighty or apache) listing in a specific internal port, add this server to the dummy host and in cron / shell script you can to do

WGET http://dummyhost/mydaemon.asmx
+1
source

All Articles