C# Console Application - Keep it running

前端 未结 11 1727
萌比男神i
萌比男神i 2020-12-16 01:02

I am about to develop a console application that will be required to continually run and carry out work at specific times.

My question is what is are best methods or

11条回答
  •  感情败类
    2020-12-16 01:54

    If your building a desktop application you'll want to have it run in the system tray. This will

    1. Keep your users from accidentally closing the application
    2. Keep your application from cluttering the screen of your users

    If your building a server application you will want to write a windows service. This will

    1. Keep an administrator from accidentally closing your application
    2. Eliminate the need for the server to have someone logged into the console for your application to be running in

    As someone who is primarily an IT Pro I would say that 3rd party applications that we get that run as console apps instead of windows services we put a lot of effort into keeping from being purchased. It creates a lot of work for us, and opens up significant support issues and security holes.

提交回复
热议问题