Пример #1
0
 /// <summary>
 /// Событие остановки захвата
 /// </summary>
 void device_OnCaptureStopped(object sender, CaptureStoppedEventStatus status)
 {
     if (status != CaptureStoppedEventStatus.CompletedWithoutError)
     {
         _messageService.ShowError("Error stoping capture");
     }
 }
Пример #2
0
 void device_OnCaptureStopped(object sender, CaptureStoppedEventStatus status)
 {
     if (status != CaptureStoppedEventStatus.CompletedWithoutError)
     {
         MessageBox.Show("Error stopping capture", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Пример #3
0
 void 处理停止抓包(object sender, CaptureStoppedEventStatus status)
 {
     if (status != CaptureStoppedEventStatus.CompletedWithoutError)
     {
         XtraMessageBox.Show("抓包出错!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Пример #4
0
 private void OnCaptureStopped(object sender, CaptureStoppedEventStatus status)
 {
     if (status != CaptureStoppedEventStatus.CompletedWithoutError)
     {
         Console.WriteLine("Error stopping capture");
     }
 }
Пример #5
0
 private void device_OnCaptureStopped(object sender, CaptureStoppedEventStatus status)
 {
     if (status != CaptureStoppedEventStatus.CompletedWithoutError)
     {
         Debug.WriteLine("Error stopping capture");
     }
     Debug.WriteLine("stopping capture");
 }
Пример #6
0
 void device_OnCaptureStopped(object sender, CaptureStoppedEventStatus status)
 {
     if (status != CaptureStoppedEventStatus.CompletedWithoutError)
     {
         TAMessageBox = new TAMessageBox("Error", "Error stopping capture", false, true);
         TAMessageBox.Show();
     }
 }
Пример #7
0
        private void SelectedDeviceOnCaptureStopped(object sender, CaptureStoppedEventStatus status)
        {
            if (this.disposing)
            {
                return;
            }

            this.Invoke(this.stopUpdater);
        }
Пример #8
0
        /// <summary>
        /// Notify the delegates that are subscribed to the capture stopped event
        /// </summary>
        /// <param name="status">
        /// A <see cref="CaptureStoppedEventStatus"/>
        /// </param>
        protected virtual void SendCaptureStoppedEvent(CaptureStoppedEventStatus status)
        {
            var handler = OnCaptureStopped;

            if (handler != null)
            {
                handler(this, status);
            }
        }
Пример #9
0
        void S_OnCaptureStop(object sender, CaptureStoppedEventStatus status)
        {
            IPayloadSniffer pay = (IPayloadSniffer)Payload;

            if (pay != null)
            {
                pay.Stop(sender);
            }

            WriteInfo("Capture stopped");
        }
Пример #10
0
        private void OnStopCapture(object sender, CaptureStoppedEventStatus status)
        {
            //if (status == CaptureStoppedEventStatus.CompletedWithoutError)
            //{
            //	Console.WriteLine("capture thread exit succeed");
            //}

            //if (status == CaptureStoppedEventStatus.ErrorWhileCapturing)
            //{
            //	Console.WriteLine("capture thread has aborted");
            //}
        }
Пример #11
0
 private void Device_OnCaptureStopped(object sender, CaptureStoppedEventStatus status)
 {
     //switch (status)
     //{
     //    case CaptureStoppedEventStatus.CompletedWithoutError:
     //        LogHelper.WriteLog("成功获取根节点MAC地址。");
     //        break;
     //    case CaptureStoppedEventStatus.ErrorWhileCapturing:
     //        LogHelper.WriteLog("根节点MAC地址获取超时或发生异常。");
     //        break;
     //}
     //Lock = false;
 }
Пример #12
0
 public void StopCapture()
 {
     lock (monitorLock)
     {
         continueMonitoring = false;
         var ev = OnCaptureStopped;
         if (ev != null)
         {
             var e = new CaptureStoppedEventStatus();
             ev(this, e);
         }
     }
 }
Пример #13
0
        void _Device_OnCaptureStopped(object sender, CaptureStoppedEventStatus status)
        {
            _SyncPackets.CompleteAdding();
            if (_WorkerQueue != null)
            {
                while (_WorkerQueue.IsBusy)
                {
                    Thread.Sleep(50);
                }
            }
            if (_WorkerClean != null)
            {
                while (_WorkerClean.IsBusy)
                {
                    Thread.Sleep(50);
                }
            }

            Stop();

            OnCaptureStop?.Invoke(sender, status);
        }
Пример #14
0
 /// <summary>
 /// Notify the delegates that are subscribed to the capture stopped event
 /// </summary>
 /// <param name="status">
 /// A <see cref="CaptureStoppedEventStatus"/>
 /// </param>
 protected void SendCaptureStoppedEvent(CaptureStoppedEventStatus status)
 {
     var handler = OnCaptureStopped;
     if(handler != null)
     {
         handler(this, status);
     }
 }
Пример #15
0
 void S_OnCaptureStop(object sender, CaptureStoppedEventStatus status)
 {
     WriteInfo("Capture stopped");
 }
Пример #16
0
 void device_OnCaptureStopped(object sender, CaptureStoppedEventStatus status)
 {
     if (status != CaptureStoppedEventStatus.CompletedWithoutError)
     {
         MessageBox.Show("Error stopping capture", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Пример #17
0
 private void _OnCaptureStopped(object sender, CaptureStoppedEventStatus status)
 {
 }
Пример #18
0
 public void device_OnCaptureStopped(object sender, CaptureStoppedEventStatus status)
 {
     captureFileWriter.Close();
     signal.Release();
 }
Пример #19
0
        private void SelectedDeviceOnCaptureStopped(object sender, CaptureStoppedEventStatus status)
        {
            if (this.disposing)
                return;

            this.Invoke(this.stopUpdater);
        }
Пример #20
0
 private void Device_OnCaptureStopped(object sender, CaptureStoppedEventStatus status)
 {
     Log.Information("Stop Capturing");
 }
Пример #21
0
 /// <summary>
 /// Notify the delegates that are subscribed to the capture stopped event
 /// </summary>
 /// <param name="status">
 /// A <see cref="CaptureStoppedEventStatus"/>
 /// </param>
 protected virtual void SendCaptureStoppedEvent(CaptureStoppedEventStatus status)
 {
     OnCaptureStopped?.Invoke(this, status);
 }
 /// <summary>
 /// Called when the capturing has stopped.
 /// </summary>
 /// <param name="Sender">The sender.</param>
 /// <param name="Args">The arguments.</param>
 private void OnCaptureStopped(object Sender, CaptureStoppedEventStatus Args)
 {
     Logging.Warning(this.GetType(), "Packet capture has been stopped.");
 }