且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

是否可以在 Windows Service C# 中获取用户输入

更新时间:2023-02-12 20:43:35

不,Windows 服务不是为此而设计的.您需要使用桌面或 Web 应用程序.如果有充分的理由使用某项服务,您需要创建一个应用程序,并让它向该服务发送或传达输入.

No, a Windows Service is not designed for that. You would need to use a desktop or web application. If there is a good reason to use a service, you would need to create an application and have it send or communicate the input to the service.