C#/.NET: Detect whether program is being run as a service or a console application [duplicate]

后端 未结 8 1197
庸人自扰
庸人自扰 2020-12-16 10:46
热议问题