CSHARP 52
Untitled Guest on 22nd February 2025 02:36:48 PM
  1. using System.ServiceProcess;
  2.  
  3. public class MyService : ServiceBase
  4. {
  5.     public MyService()
  6.     {
  7.         this.ServiceName = "MyServiceName";
  8.     }
  9.  
  10.     protected override void OnStart(string[] args)
  11.     {
  12.         // Code to start your service
  13.     }
  14.  
  15.     protected override void OnStop()
  16.     {
  17.         // Code to stop your service
  18.     }
  19. }

Hightechrobo bin is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.