public virtual void Interrupt() { isInterruptRequested = true; var args = CreateEventArgs(CurrentVertex); OnInterrupted?.Invoke(this, args); }
public void Interrupt() { tokenSource.Cancel(); isStarted = false; var args = new AssembleClassesEventArgs(ClassesNames); OnInterrupted?.Invoke(this, args); }
public void Interrupt() { OnInterrupted?.Invoke(this, EventArgs.Empty); }
protected void HandleInterrupted() { OnInterrupted?.Invoke(); }