Scheduled console app vs Windows service? When is it appropriate to use each

前端 未结 7 2070
误落风尘
误落风尘 2020-12-24 12:55

I just read this: What is the benefit of developing the application as a windows service? but I\'m still unsure of when to use a windows service.

I have a couple tas

7条回答
  •  情话喂你
    2020-12-24 13:14

    I would prefer windows service in most cases.
    One good thing when using scheduled tasks:
    All used resources are released when the scheduled task have finished.

    When using windows service (without stopping the service), the process never dies. And you must in your program make sure that resources are released.

提交回复
热议问题