public void Stop() { if (m_Running == false) { return; } m_Running = false; (m_Current.Value as ICommandProcess)?.iStop(); m_CommandListener.iInterrupted(m_Current.Value); m_Current = null; }
public void iStop() { if (m_CurrentCommand != null && m_State != State.Interrupted) { m_State = State.Interrupted; (m_CurrentCommand.Value as ICommandProcess)?.iStop(); m_CommandNotifier.iInterrupted(m_CurrentCommand.Value); } }
public void iInterrupted(ICommand command) => m_RedirectionTarget.iInterrupted(command);