Beispiel #1
0
 private async void StartCapture(int sID, string server_name, string session_name)
 {
     try
     {
         CaptureExtendedEvents cee = new CaptureExtendedEvents(_MonitoringServer, server_name, session_name);
         await Task.Run(() =>
         {
             cee.StartEventStreamCollection();
         });
     }catch (Exception ex)
     {
         Console.WriteLine("Error starting capture: [" + _MonitoringServer + "] : [" + server_name + "] : [" + session_name + "]");
     }
     _CapturesRunning.Remove(sID);
 }
Beispiel #2
0
 public void UnsubscribeFromEventStream(CaptureExtendedEvents ves)
 {
     ves.streamEvent -= QueueEventItemForInsert;
 }
Beispiel #3
0
 public void SubscribeToEventStream(CaptureExtendedEvents ves)
 {
     ves.streamEvent += QueueEventItemForInsert;
 }