Example #1
0
        public CommandParamMap(DelegateContainer delContainer)
        {
            CommandType = delContainer.delType;

            CommandName = delContainer.delType.Name;

            var commandAttribute = delContainer.additionalInfo as ApiCore.Managers.Command;

            if (commandAttribute != null)
            {
                CacheMinutes = commandAttribute.cacheMinutes;

                //CacheBypass = additionalInfo.cac;
            }

            RunMethod = delContainer.replacementMethod;

            Parameters = delContainer.parameters.ToList();
        }
Example #2
0
 public static CommandParamMap GetCommandParamMap(DelegateContainer delContainer)
 {
     return(commandParamMaps.GetOrAdd(delContainer.delType, (t) => new CommandParamMap(delContainer)));
 }