/// <summary>
        /// Initializes a new instance of the TemplatingContext class.
        /// </summary>
        /// <param name="xpe"> The XML persist engine in-effect. </param>
        /// <param name="tokenizer"> The tokenizer in-efect. </param>
        /// <param name="input"> The input mechanism in-effect. </param>
        /// <param name="output"> The output mechanism in-effect. </param>
        /// <param name="properties"> The properties in-effect. </param>
        public TemplatingContext(IXmlPersistEngine xpe, Tokenizer tokenizer, IInputMechanism input, IOutputMechanism output, IDictionary <string, IList <string> > properties)
        {
            if ((object)xpe == null)
            {
                throw new ArgumentNullException(nameof(xpe));
            }

            if ((object)tokenizer == null)
            {
                throw new ArgumentNullException(nameof(tokenizer));
            }

            if ((object)input == null)
            {
                throw new ArgumentNullException(nameof(input));
            }

            if ((object)output == null)
            {
                throw new ArgumentNullException(nameof(output));
            }

            if ((object)properties == null)
            {
                throw new ArgumentNullException(nameof(properties));
            }

            this.xpe        = xpe;
            this.tokenizer  = tokenizer;
            this.input      = input;
            this.output     = output;
            this.properties = properties;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the TemplatingContext class.
        /// </summary>
        /// <param name="xpe"> The XML persist engine in-effect. </param>
        /// <param name="tokenizer"> The tokenizer in-efect. </param>
        /// <param name="input"> The input mechanism in-effect. </param>
        /// <param name="output"> The output mechanism in-effect. </param>
        public TemplatingContext(IXmlPersistEngine xpe, Tokenizer tokenizer, IInputMechanism input, IOutputMechanism output)
        {
            if ((object)xpe == null)
                throw new ArgumentNullException("xpe");

            if ((object)tokenizer == null)
                throw new ArgumentNullException("tokenizer");

            if ((object)input == null)
                throw new ArgumentNullException("input");

            if ((object)output == null)
                throw new ArgumentNullException("output");

            this.xpe = xpe;
            this.tokenizer = tokenizer;
            this.input = input;
            this.output = output;
        }
Ejemplo n.º 3
0
		/// <summary>
		/// Initializes a new instance of the TemplatingContext class.
		/// </summary>
		/// <param name="xpe"> The XML persist engine in-effect. </param>
		/// <param name="tokenizer"> The tokenizer in-efect. </param>
		/// <param name="input"> The input mechanism in-effect. </param>
		/// <param name="output"> The output mechanism in-effect. </param>
		/// <param name="properties"> The properties in-effect. </param>
		public TemplatingContext(IXmlPersistEngine xpe, Tokenizer tokenizer, IInputMechanism input, IOutputMechanism output, IDictionary<string, IList<string>> properties)
		{
			if ((object)xpe == null)
				throw new ArgumentNullException(nameof(xpe));

			if ((object)tokenizer == null)
				throw new ArgumentNullException(nameof(tokenizer));

			if ((object)input == null)
				throw new ArgumentNullException(nameof(input));

			if ((object)output == null)
				throw new ArgumentNullException(nameof(output));

			if ((object)properties == null)
				throw new ArgumentNullException(nameof(properties));

			this.xpe = xpe;
			this.tokenizer = tokenizer;
			this.input = input;
			this.output = output;
			this.properties = properties;
		}