AmazedSaint.Elastic.Templating.DynamicTemplateHost.ResolveParameterValue C# (CSharp) Method

ResolveParameterValue() public method

If a call to a directive in a text template does not provide a value for a required parameter, the directive processor can try to get it from the host by calling this method. This method can be called 0, 1, or more times.
public ResolveParameterValue ( string directiveId, string processorName, string parameterName ) : string
directiveId string
processorName string
parameterName string
return string
        public string ResolveParameterValue(string directiveId, string processorName, string parameterName)
        {
            if (directiveId == null)
            {
                throw new ArgumentNullException("The directiveId cannot be null");
            }
            if (processorName == null)
            {
                throw new ArgumentNullException("The processorName cannot be null");
            }
            if (parameterName == null)
            {
                throw new ArgumentNullException("The parameterName cannot be null");
            }

            //Code to provide "hard-coded" parameter values goes here.
            //This code depends on the directive processors this host will interact with.

            //If we cannot do better - return the empty string.
            return String.Empty;
        }