Esempio n. 1
0
        private void CheckConfigKeys(Configuration configuration)
        {
            var configKeys = TemplateTransformer.GetAllConfigKeysFromTemplate(Content);

            foreach (var configKey in configKeys)
            {
                var key = TemplateTransformer.GetTemplateKeyWithoutAfixes(configKey);
                var configurationHasKey = configuration.Data.ContainsKey(key);
                if (!configurationHasKey)
                {
                    Logger.Warning("Warning: '{0}' - Is not in configuration values", configKey);
                }
                else
                {
                    Logger.Debug("{0}: {1}", configKey, configuration.Data[key]);
                }
            }
        }
Esempio n. 2
0
 public string Run(Configuration configuration)
 {
     CheckConfigKeys(configuration);
     return(TemplateTransformer.TransformTemplateRecursive(Content, configuration.Data));
 }