private void RequestStop(StoppedEvent.ReasonValue reason, int threadId = 0) { lock (this.syncObject) { this.stopReason = reason; this.stopThreadId = threadId; this.runEvent.Reset(); } }
public void Stop(StoppedEvent.ReasonValue reason) { Protocol.SendEvent(new StoppedEvent { Reason = reason, ThreadId = 0 }); }