|
using System.Collections.Generic;
using System.ServiceProcess;
using System.Text;
namespace MyService
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
static void Main()
{
ServiceBase[] ServicesToRun;
// More than one user Service may run within the same process. To add
// another service to this process, change the following line to
// create a second service object. For example,
//
// ServicesToRun = new ServiceBase[] {new Service1(), new MySecondUserService()};
//
ServicesToRun = new ServiceBase[] { new MyWinService() };
ServiceBase.Run(ServicesToRun);
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Divyalok Suman has done B.E in Computer Science from bangalore ,Karnataka, India . Past 6 years he is working on web-based and windows based solutions in Asp.net MVC 1.0/2.0/3.0/4.0, ASP.NET 2.0/3.5/4.0, C# 2.0/3.5/4.0, AJAX, Web Services, MS SQL Server 2005/2008,Win Forms, Window services. He is also an MCP and MCTS . He has good knowledge of Object Oriented Programming, 3-Tier Architecture and Designing.