在 C# 中创建带有用户通知的 Windows 服务? [英] Creating a Windows service with user notification in C#?
本文介绍了在 C# 中创建带有用户通知的 Windows 服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想以这种方式创建 Windows 服务:
I want to create Windows service in such a way :
-> 它需要输入数据库信息...
-> It takes input database information ...
-> 在服务完成时通知用户完成过程.
-> at completion of service it notifies user for completion of process.
如何使用 C#.Net 中的 Windows 服务执行此操作?
How can I do this with Windows service in C#.Net?
谢谢
推荐答案
我想你在问三个问题:
- 如何创建 Windows 服务
- 如何打开和读取数据库中的数据
- 如何通知用户
答案:
- 示例
- 如果您可以使用 .NET 3.5 和 SQL Server 2005 或 2008,我会推荐 LINQ to SQL
- Windows 服务没有用户界面,因此您需要考虑如何通知用户.最简单的选择可能是向他们发送电子邮件.
这篇关于在 C# 中创建带有用户通知的 Windows 服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文