Esempio n. 1
0
        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);
        }
Esempio n. 3
0
 public void Interrupt()
 {
     OnInterrupted?.Invoke(this, EventArgs.Empty);
 }
Esempio n. 4
0
 protected void HandleInterrupted()
 {
     OnInterrupted?.Invoke();
 }