/Visual Studio 2008/CSWindowsService/Program.cs
C# | 36 lines | 15 code | 3 blank | 18 comment | 0 complexity | 1245a748a3e22038a30cfb45d45f050c MD5 | raw file
- /****************************** Module Header ******************************\
- * Module Name: Program.cs
- * Project: CSWindowsService
- * Copyright (c) Microsoft Corporation.
- *
- * The file defines the entry point of the application.
- *
- * This source is subject to the Microsoft Public License.
- * See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL.
- * All other rights reserved.
- *
- * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
- * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
- \***************************************************************************/
-
- #region Using directives
- using System;
- using System.ServiceProcess;
- #endregion
-
-
- namespace CSWindowsService
- {
- static class Program
- {
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
- static void Main()
- {
- ServiceBase service = new SampleService();
- ServiceBase.Run(service);
- }
- }
- }