![]() Now open service1.cs file and click on “Click here to switch to code view”. / The main entry point for the application. Open program.cs file and it created following lines of code, we don’t need anything here static class Program It will create two files program.cs and service1.cs Select Windows Service and name it what you want, in our case its “WindowSeriveDemo”.Let’s start creating it, we will use Visual Studio 2010 and C# language for it ![]() In this article we will create a windows service which will run after a particular interval, and time should be configurable and code to write log in a text file as well as send email if there is any error to execute the required method. Creating windows service in C# is really easy but when we need to create first time we face many problems so in this post we will try to learn everything about window service.
0 Comments
Leave a Reply. |