问题
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:
- How do I create a Windows Service
- How do I open and read data from a database
- How do I notify a user
Answers:
- Example
- If you can use .NET 3.5 and SQL Server 2005 or 2008, I would recommend LINQ to SQL
- 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