/// <summary> /// Notify clients of the given event. /// </summary> private void OnEventAsync(JdwpEvent @event) { Task.Factory.StartNew(() => JdwpEvent.Fire(this, @event)) .ContinueWith(task => { DLog.Error(DContext.DebuggerLibJdwpConnection, "OnEventAsync: Internal failure on event processing. IsCancelled={0}. Exception={1}", task.IsCanceled, task.Exception); }, TaskContinuationOptions.NotOnRanToCompletion); }
// Base protected virtual TResult Visit(JdwpEvent e, TData data) { return(default(TResult)); }
/// <summary> /// Notify clients of the given event. /// </summary> private void OnEventAsync(JdwpEvent @event) { Task.Factory.StartNew(() => JdwpEvent.Fire(this, @event)); }
/// <summary> /// Catch all handler. /// </summary> protected override bool Visit(JdwpEvent e, Jdwp.SuspendPolicy suspendPolicy) { HandleSuspendPolicy(suspendPolicy, SuspendReason.ProcessSuspend, null); return(base.Visit(e, suspendPolicy)); }