Пример #1
0
        void RemoveDisable(IBehavior behavior)
        {
            //disable
            behavior?.Disable();

            //stop workflow if its currently active
            IWorkflow current = null;

            if (!_workflows.TryPeek(out current))
            {
                return;
            }
            if (current == behavior)
            {
                RemoveWorkflow();
            }
        }