Converting a Console Application to a service?

前端 未结 5 939
[愿得一人]
[愿得一人] 2021-02-06 05:53

I\'m looking for different ways with strengths/weaknesses for converting a console application we are using long term in to a windows service. We use something called java serv

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-06 06:30

    What is your long-term usage scenario? A windows service might suffice...but Windows Server 2008/IIS7 provide some intriguing new ways of hosting and activating "services" via Windows Activation Services. A Windows Service will always be running, and may require some special coding. With WAS, you can write your host as a normal WCF service, and have it activated on demand when requests come in, and deactivated when it is not used. Other options also exist...such as MSMQ hosting and instantiation, etc.

提交回复
热议问题