Creating a Windows service with user notification in C#?

心已入冬 提交于 2019-12-13 03:47:27

问题


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.

How can I do this with Windows service in C#.Net?

Thanks


回答1:


I think you are asking three questions:

  1. How do I create a Windows Service
  2. How do I open and read data from a database
  3. How do I notify a user

Answers:

  1. Example
  2. If you can use .NET 3.5 and SQL Server 2005 or 2008, I would recommend LINQ to SQL
  3. A Windows Service has no UI, so you would need to think about how you want to notify the user. The simplest option might be to send them an email.



回答2:


Based on some of the clues you provided in your question, I think you should probably look at WCF:

http://msdn.microsoft.com/en-us/netframework/aa663324.aspx



来源:https://stackoverflow.com/questions/330282/creating-a-windows-service-with-user-notification-in-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!