Beispiel #1
0
 /// <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);
 }
Beispiel #2
0
 // Base
 protected virtual TResult Visit(JdwpEvent e, TData data)
 {
     return(default(TResult));
 }
Beispiel #3
0
 /// <summary>
 /// Notify clients of the given event.
 /// </summary>
 private void OnEventAsync(JdwpEvent @event)
 {
     Task.Factory.StartNew(() => JdwpEvent.Fire(this, @event));
 }
Beispiel #4
0
 /// <summary>
 /// Catch all handler.
 /// </summary>
 protected override bool Visit(JdwpEvent e, Jdwp.SuspendPolicy suspendPolicy)
 {
     HandleSuspendPolicy(suspendPolicy, SuspendReason.ProcessSuspend, null);
     return(base.Visit(e, suspendPolicy));
 }