Example #1
0
        public void ExecuteCommand(FlowCommand command)
        {
            if (command == null)
            {
                return;
            }

            to_execute.Add(command);
        }
Example #2
0
        private void UpdateCommands()
        {
            if (to_execute.Count <= 0)
            {
                return;
            }

            FlowCommand curr_executing = to_execute[0];

            if (curr_executing.Finished)
            {
                to_execute.RemoveAt(0);
            }
            else if (!curr_executing.Started)
            {
                curr_executing.Execute();

                Fast.FastService.MLog.LogInfo($"Flow command: [{curr_executing.GetType().ToString()}]: { curr_executing.LogCommand()}");
            }
        }