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); }
public Service1() { InitializeComponent(); EventLog.WriteEntry("service1", EventLogEntryType.Warning); utils = new utilsNitgen(); //thread = new Thread(Server); //thread.Start(); }