PageRenderTime 391ms CodeModel.GetById 30ms RepoModel.GetById 1ms 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. #region Using directives
  17. using System;
  18. using System.ServiceProcess;
  19. #endregion
  20. namespace CSWindowsService
  21. {
  22. static class Program
  23. {
  24. /// <summary>
  25. /// The main entry point for the application.
  26. /// </summary>
  27. static void Main()
  28. {
  29. ServiceBase service = new SampleService();
  30. ServiceBase.Run(service);
  31. }
  32. }
  33. }