PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/Visual Studio 2008/CSWindowsService/Program.cs

#
C# | 36 lines | 15 code | 3 blank | 18 comment | 0 complexity | 1245a748a3e22038a30cfb45d45f050c MD5 | raw file
 1/****************************** Module Header ******************************\
 2* Module Name:  Program.cs
 3* Project:      CSWindowsService
 4* Copyright (c) Microsoft Corporation.
 5* 
 6* The file defines the entry point of the application.
 7* 
 8* This source is subject to the Microsoft Public License.
 9* See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL.
10* All other rights reserved.
11* 
12* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 
13* EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED 
14* WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
15\***************************************************************************/
16
17#region Using directives
18using System;
19using System.ServiceProcess;
20#endregion
21
22
23namespace CSWindowsService
24{
25    static class Program
26    {
27        /// <summary>
28        /// The main entry point for the application.
29        /// </summary>
30        static void Main()
31        {
32            ServiceBase service = new SampleService();
33            ServiceBase.Run(service);
34        }
35    }
36}