Exemple #1
0
 protected override void OnStop()
 {
     if (!EventLog.SourceExists(LogUploadManager.strSource, LogUploadManager.strMachine))
     {
         EventSourceCreationData eventData = new EventSourceCreationData(LogUploadManager.strSource, LogUploadManager.strLog);
         EventLog.CreateEventSource(eventData);
     }
     EventLog.WriteEntry(LogUploadManager.strSource, "NE Portal Log Upload Manager has Stopped managing log uploads. Service stopped by user.",
                         EventLogEntryType.Information, 1987);
     LogUploadManager.StopUploadManager();
 }
Exemple #2
0
 protected override void OnStart(string[] args)
 {
     if (!EventLog.SourceExists(LogUploadManager.strSource, LogUploadManager.strMachine))
     {
         EventSourceCreationData eventData = new EventSourceCreationData(LogUploadManager.strSource, LogUploadManager.strLog);
         EventLog.CreateEventSource(eventData);
     }
     EventLog.WriteEntry(LogUploadManager.strSource, "NE Portal Log Upload Manager has started managing log uploads. Using configuration settings defined in: " + LogUploadManager.ConfigFilePath,
                         EventLogEntryType.Information, 1982);
     LogUploadManager.StartUploadManager();
 }