예제 #1
0
 protected override void OnStart(string[] args)
 {
     utils = new utilsNitgen();
     EventLog.WriteEntry("Serviço Iniciando", EventLogEntryType.Warning);
     thread = new Thread(Server);
     thread.Start();
     EventLog.WriteEntry("Serviço Iniciado", EventLogEntryType.Warning);
 }
예제 #2
0
 public Service1()
 {
     InitializeComponent();
     EventLog.WriteEntry("service1", EventLogEntryType.Warning);
     utils = new utilsNitgen();
     //thread = new Thread(Server);
     //thread.Start();
 }