I have a .NET Windows Service and would like to convert to Azure Web Jobs. Please let me know if I can host it as an Azure Web Jobs or a recommendation to convert.
You can't unfortunately directly host Windows Services in Azure PaaS solutions, unless it is built using TopShelf . Your options are:
For conversion the simplest plan is usually the following:
You can skip the conversion part if your service uses TopShelf.
If your Windows Service is doing something else than just executing simple logic, for example it hosts WCF or Web Api, the easiest option usually is to convert it into a web app.
You could convert your service to a console application and run it as a continuous web job. Simply put a run.cmd inside the same directory that will start your .exe file (see Run Background tasks with WebJobs in Azure App Service ).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.