Exemplo n.º 1
0
        /// <summary>
        /// Start the runtime schedule, executing the installed chats
        /// </summary>
        public void Run(string chatLabel = null)
        {
            if (chats.Count < 1)
            {
                throw new DialogicException("No chats found");
            }

            scheduler.Launch(FindChatByLabel(chatLabel ?? firstChat));
        }
Exemplo n.º 2
0
        private IUpdateEvent UserActionHandler(ref EventArgs ea, IDictionary <string, object> globals)
        {
            IUserEvent ue    = (IUserEvent)ea;
            var        label = ue.GetEventType();

            ea = null;

            scheduler.Suspend();
            scheduler.Launch("#On" + label + "Event");

            return(null);
        }