Source/NFX/Environment/Configuration.cs
/// <summary>
/// Runs macro and returns its value
/// </summary>
Runs macro and returns its value
Runs macro and returns its value
public string RunMacro(IConfigSectionNode node, string inputValue, string macroName, IConfigSectionNode macroParams, IMacroRunner runner = null, object context = null)
        {
          if (context==null) context = m_MacroRunnerContext;
          if (runner!=null)
           return runner.Run(node, inputValue, macroName, macroParams, context);
          if (m_MacroRunner != null)
            return m_MacroRunner.Run(node, inputValue, macroName, macroParams, context);
          return DefaultMacroRunner.Instance.Run(node, inputValue, macroName, macroParams, context);
        }
public string RunMacro ( IConfigSectionNode node , string inputValue , string macroName , IConfigSectionNode macroParams , IMacroRunner runner = null , object context = null ) { if ( context == null ) context = m_MacroRunnerContext ; if ( runner != null ) return runner . Run ( node , inputValue , macroName , macroParams , context ) ; if ( m_MacroRunner != null ) return m_MacroRunner . Run ( node , inputValue , macroName , macroParams , context ) ; return DefaultMacroRunner . Instance . Run ( node , inputValue , macroName , macroParams , context ) ; }
Runs macro and returns its value
Runs macro and returns its value
node
IConfigSectionNode
inputValue
string
macroName
string
macroParams
IConfigSectionNode
runner
IMacroRunner
context
object