Ejemplo n.º 1
0
        private void Term()
        {
            _agentConnect.Term(Logger);

            if (_termHandle != null) _termHandle.Set();
            if (_thread != null) _thread.Join();
            _thread = null;

            _instance = null;
        }
Ejemplo n.º 2
0
 public static void Start(EventLog eventLog, string workDirectory)
 {
     if (_instance == null) _instance = new SqlTraceReader(eventLog, workDirectory);
 }
Ejemplo n.º 3
0
 private void Exit(string message)
 {
     _eventLog.WriteEntry(message, EventLogEntryType.Error);
     _thread = null;
     _instance = null;
     InvokeStopping(new SqlTraceService.StoppingEventArgs { Reason = message });
 }