using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Tango.MachineStudio.Common.Navigation { /// /// Represents an object which can abort the navigation from it. /// public interface INavigationBlocker { /// /// Called before the navigation system navigates from this object. /// Return false to abort the navigation. /// /// Task OnNavigateOutRequest(); /// /// Called before the navigation system navigates back from this object. /// Return false to abort the navigation. /// /// Task OnNavigateBackRequest(); } }