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(); }
public static CommandParamMap GetCommandParamMap(DelegateContainer delContainer) { return(commandParamMaps.GetOrAdd(delContainer.delType, (t) => new CommandParamMap(delContainer))); }