/// <summary>
        /// Gets the collection of variables defined for internal use only.
        /// Internal values are not available to be resolved in the Lava Template.
        /// </summary>
        public override LavaDataDictionary GetInternalFields()
        {
            var values = new LavaDataDictionary();

            foreach (var item in _context.AmbientValues)
            {
                values.AddOrReplace(item.Key, item.Value);
            }

            return(values);
        }
Esempio n. 2
0
        /// <summary>
        /// Gets the collection of variables defined for internal use only.
        /// Internal values are not available to be resolved in the Lava Template.
        /// </summary>
        public override LavaDataDictionary GetInternalFields()
        {
            var values = new LavaDataDictionary();

            var internalKeys = _context.ValueNames.Where(x => x.StartsWith(_InternalFieldKeyPrefix));

            foreach (var key in internalKeys)
            {
                values.AddOrReplace(key, _context.GetValue(key));
            }

            return(values);
        }