Beispiel #1
0
 protected override void OnStop()
 {
     try
     {
         TraceLog.TraceInfo("Stopping Capture Service");
         CollectorClient.Stop();
         UploadClient.Stop();
     }
     catch (Exception ex)
     {
         TraceLog.TraceException("OnStop: Caught exception", ex);
         throw ex;
     }
 }
Beispiel #2
0
        static void Main(string[] args)
        {
            TraceLog.TraceDestination = TraceLog.Destination.Console;
            CollectorClient.Start();
            UploadClient.Start();

            Console.WriteLine("Press any key to stop collection");
            Console.ReadLine();

            CollectorClient.Stop();
            UploadClient.Stop();

            Console.WriteLine("Press any key to exit");
            Console.ReadLine();
        }