Пример #1
0
        public void AddVariable(string keyName, string desc)
        {
            string   key      = FormatKey(keyName);
            Argument keyValue = GetConfiguredArgument(key);

            if (keyValue != null)
            {
                throw new Exception(string.Format("The key {0} already exists.", keyName));
            }
            Argument k = new Argument(key, desc);

            ConfiguredArguments.Add(k);
        }
Пример #2
0
        public void AddActionWithRequiredVariable(string actionName, string variableName, string desc, Action <string, Args> action)
        {
            string   key      = FormatKey(actionName);
            Argument keyValue = GetConfiguredArgument(key);

            if (keyValue != null)
            {
                throw new Exception(string.Format("The key {0} already exists.", actionName));
            }


            Argument k = new Argument(key, variableName, desc, action);

            ConfiguredArguments.Add(k);
        }
Пример #3
0
        /// <summary>
        /// build the collection of given arguments
        /// </summary>
        /// <param name="node"></param>
        /// <returns></returns>
        public static ConfiguredArguments BuildArguments(this HandlerNode node)
        {
            var collection = new ConfiguredArguments();

            if (node.Arguments == null)
            {
                return(collection);
            }

            foreach (var item in node.Arguments)
            {
                collection.Add(item.Key, item.Value);
            }

            return(collection);
        }
Пример #4
0
 public CustomOutputHandler(IEventDataConverter converter, ConfiguredArguments arguments)
 {
 }
Пример #5
0
 public RecurringInputHandler(ConfiguredArguments arguments)
 {
     _arguments = arguments;
 }