private void InvokeNewDataCapturedEventHandler(FiddlerCaptureInformation fiddlerCaptureInformation) { if (NewDataCapturedEventHandler != null) { NewDataCapturedEventHandler(this, fiddlerCaptureInformation); } }
private void InvokeNewDataCapturedEventHandler(FiddlerCaptureInformation fiddlerCaptureInformation) { if (NewDataCapturedEventHandler != null) { NewDataCapturedEventHandler(this, fiddlerCaptureInformation); } }
private void NewDataCapturedEventHandler(object sender, FiddlerCaptureInformation fiddlerCaptureInformation) { Task.Factory.StartNew(() => { Application.Current.Dispatcher.Invoke( DispatcherPriority.Normal, (Action) delegate { FiddlerCaptureInformation.Add(fiddlerCaptureInformation); }); }); }