/// <summary> /// Событие остановки захвата /// </summary> void device_OnCaptureStopped(object sender, CaptureStoppedEventStatus status) { if (status != CaptureStoppedEventStatus.CompletedWithoutError) { _messageService.ShowError("Error stoping capture"); } }
void device_OnCaptureStopped(object sender, CaptureStoppedEventStatus status) { if (status != CaptureStoppedEventStatus.CompletedWithoutError) { MessageBox.Show("Error stopping capture", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
void 处理停止抓包(object sender, CaptureStoppedEventStatus status) { if (status != CaptureStoppedEventStatus.CompletedWithoutError) { XtraMessageBox.Show("抓包出错!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void OnCaptureStopped(object sender, CaptureStoppedEventStatus status) { if (status != CaptureStoppedEventStatus.CompletedWithoutError) { Console.WriteLine("Error stopping capture"); } }
private void device_OnCaptureStopped(object sender, CaptureStoppedEventStatus status) { if (status != CaptureStoppedEventStatus.CompletedWithoutError) { Debug.WriteLine("Error stopping capture"); } Debug.WriteLine("stopping capture"); }
void device_OnCaptureStopped(object sender, CaptureStoppedEventStatus status) { if (status != CaptureStoppedEventStatus.CompletedWithoutError) { TAMessageBox = new TAMessageBox("Error", "Error stopping capture", false, true); TAMessageBox.Show(); } }
private void SelectedDeviceOnCaptureStopped(object sender, CaptureStoppedEventStatus status) { if (this.disposing) { return; } this.Invoke(this.stopUpdater); }
/// <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); } }
void S_OnCaptureStop(object sender, CaptureStoppedEventStatus status) { IPayloadSniffer pay = (IPayloadSniffer)Payload; if (pay != null) { pay.Stop(sender); } WriteInfo("Capture stopped"); }
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"); //} }
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; }
public void StopCapture() { lock (monitorLock) { continueMonitoring = false; var ev = OnCaptureStopped; if (ev != null) { var e = new CaptureStoppedEventStatus(); ev(this, e); } } }
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); }
/// <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); } }
void S_OnCaptureStop(object sender, CaptureStoppedEventStatus status) { WriteInfo("Capture stopped"); }
void device_OnCaptureStopped(object sender, CaptureStoppedEventStatus status) { if (status != CaptureStoppedEventStatus.CompletedWithoutError) { MessageBox.Show("Error stopping capture", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void _OnCaptureStopped(object sender, CaptureStoppedEventStatus status) { }
public void device_OnCaptureStopped(object sender, CaptureStoppedEventStatus status) { captureFileWriter.Close(); signal.Release(); }
private void SelectedDeviceOnCaptureStopped(object sender, CaptureStoppedEventStatus status) { if (this.disposing) return; this.Invoke(this.stopUpdater); }
private void Device_OnCaptureStopped(object sender, CaptureStoppedEventStatus status) { Log.Information("Stop Capturing"); }
/// <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."); }