示例#1
0
 public TextMetalConsoleApplication([DependencyInjection] IDataTypeFascade dataTypeFascade,
                                    [DependencyInjection] IAppConfigFascade appConfigFascade,
                                    [DependencyInjection] IReflectionFascade reflectionFascade,
                                    [DependencyInjection] IAssemblyInformationFascade assemblyInformationFascade)
     : base(dataTypeFascade, appConfigFascade, reflectionFascade, assemblyInformationFascade)
 {
 }
示例#2
0
        protected ExecutableApplicationFascade(IDataTypeFascade dataTypeFascade, IAppConfigFascade appConfigFascade, IReflectionFascade reflectionFascade, IAssemblyInformationFascade assemblyInformationFascade)
        {
            if ((object)dataTypeFascade == null)
            {
                throw new ArgumentNullException(nameof(dataTypeFascade));
            }

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

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

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

            this.dataTypeFascade            = dataTypeFascade;
            this.appConfigFascade           = appConfigFascade;
            this.reflectionFascade          = reflectionFascade;
            this.assemblyInformationFascade = assemblyInformationFascade;
        }
示例#3
0
		/// <summary>
		/// Initializes a new instance of the AdoNetBufferingFascade class.
		/// </summary>
		/// <param name="dataTypeFascade"> The data type fascade instance to use. </param>
		public AdoNetBufferingFascade(IDataTypeFascade dataTypeFascade)
		{
			if ((object)dataTypeFascade == null)
				throw new ArgumentNullException(nameof(dataTypeFascade));

			this.dataTypeFascade = dataTypeFascade;
		}
示例#4
0
        /// <summary>
        /// Initializes a new instance of the ReflectionFascade class.
        /// </summary>
        /// <param name="dataTypeFascade"> The data type instance to use. </param>
        public ReflectionFascade(IDataTypeFascade dataTypeFascade)
        {
            if ((object)dataTypeFascade == null)
            {
                throw new ArgumentNullException(nameof(dataTypeFascade));
            }

            this.dataTypeFascade = dataTypeFascade;
        }
		public TextMetalToolContext(ITextMetalToolHost toolHost,
			IDataTypeFascade dataTypeFascade,
			IReflectionFascade reflectionFascade,
			Tokenizer tokenizer)
			: base(dataTypeFascade, reflectionFascade, tokenizer)
		{
			if ((object)toolHost == null)
				throw new ArgumentNullException(nameof(toolHost));

			this.toolHost = toolHost;
		}
示例#6
0
		protected ModelRepository(IDataTypeFascade dataTypeFascade, IAppConfigFascade appConfigFascade)
		{
			if ((object)dataTypeFascade == null)
				throw new ArgumentNullException(nameof(dataTypeFascade));

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

			this.dataTypeFascade = dataTypeFascade;
			this.appConfigFascade = appConfigFascade;
		}
示例#7
0
        public TextMetalEmailContext(StringWriter stringWriter,
                                     IDataTypeFascade dataTypeFascade,
                                     IReflectionFascade reflectionFascade,
                                     Tokenizer tokenizer)
            : base(dataTypeFascade, reflectionFascade, tokenizer)
        {
            if ((object)stringWriter == null)
            {
                throw new ArgumentNullException(nameof(stringWriter));
            }

            this.stringWriter = stringWriter;
        }
示例#8
0
        public AppConfigFascade(IConfigurationRoot configurationRoot, IDataTypeFascade dataTypeFascade)
        {
            if ((object)configurationRoot == null)
            {
                throw new ArgumentNullException(nameof(configurationRoot));
            }

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

            this.dataTypeFascade   = dataTypeFascade;
            this.configurationRoot = configurationRoot;
        }
示例#9
0
        public TextMetalToolHost([DependencyInjection] IDataTypeFascade dataTypeFascade,
                                 [DependencyInjection] IReflectionFascade reflectionFascade)
        {
            if ((object)dataTypeFascade == null)
            {
                throw new ArgumentNullException(nameof(dataTypeFascade));
            }

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

            this.dataTypeFascade   = dataTypeFascade;
            this.reflectionFascade = reflectionFascade;
        }
示例#10
0
        /// <summary>
        /// Initializes a new instance of the DynamicWildcardTokenReplacementStrategy class. This overload overrides the default strict setting (true).
        /// </summary>
        /// <param name="dataTypeFascade"> The data type fascade. </param>
        /// <param name="reflectionFascade"> The reflection fascade. </param>
        /// <param name="targets"> The target object instances to evaluate (in linear order) during wildcard token replacement. </param>
        /// <param name="strict"> A value indicating if exceptions are thrown for bad token matches. </param>
        public DynamicWildcardTokenReplacementStrategy(IDataTypeFascade dataTypeFascade, IReflectionFascade reflectionFascade, object[] targets, bool strict)
        {
            if ((object)dataTypeFascade == null)
            {
                throw new ArgumentNullException(nameof(dataTypeFascade));
            }

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

            this.dataTypeFascade   = dataTypeFascade;
            this.reflectionFascade = reflectionFascade;
            this.targets           = targets;
            this.strict            = strict;
        }
		public ExecutableApplicationFascade(IDataTypeFascade dataTypeFascade, IAppConfigFascade appConfigFascade, IReflectionFascade reflectionFascade, IAssemblyInformationFascade assemblyInformationFascade)
		{
			if ((object)dataTypeFascade == null)
				throw new ArgumentNullException(nameof(dataTypeFascade));

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

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

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

			this.dataTypeFascade = dataTypeFascade;
			this.appConfigFascade = appConfigFascade;
			this.reflectionFascade = reflectionFascade;
			this.assemblyInformationFascade = assemblyInformationFascade;

			Current = this;
		}
示例#12
0
        /// <summary>
        /// Initializes a new instance of the DynamicValueTokenReplacementStrategy class.
        /// </summary>
        /// <param name="dataTypeFascade"> The data type fascade. </param>
        /// <param name="reflectionFascade"> The reflection fascade. </param>
        /// <param name="method"> The callback method to evaluate during token replacement. </param>
        public DynamicValueTokenReplacementStrategy(IDataTypeFascade dataTypeFascade, IReflectionFascade reflectionFascade, Func <string[], object> method)
        {
            if ((object)dataTypeFascade == null)
            {
                throw new ArgumentNullException(nameof(dataTypeFascade));
            }

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

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

            this.dataTypeFascade   = dataTypeFascade;
            this.reflectionFascade = reflectionFascade;
            this.method            = method;
        }
示例#13
0
        protected TextMetalContext(IDataTypeFascade dataTypeFascade,
                                   IReflectionFascade reflectionFascade,
                                   Tokenizer tokenizer)
        {
            if ((object)dataTypeFascade == null)
            {
                throw new ArgumentNullException(nameof(dataTypeFascade));
            }

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

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

            this.dataTypeFascade   = dataTypeFascade;
            this.reflectionFascade = reflectionFascade;
            this.tokenizer         = tokenizer;
        }
示例#14
0
        public Tokenizer(IDataTypeFascade dataTypeFascade, IReflectionFascade reflectionFascade,
                         IDictionary <string, ITokenReplacementStrategy> tokenReplacementStrategies, bool strictMatching)
        {
            if ((object)dataTypeFascade == null)
            {
                throw new ArgumentNullException(nameof(dataTypeFascade));
            }

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

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

            this.dataTypeFascade            = dataTypeFascade;
            this.reflectionFascade          = reflectionFascade;
            this.tokenReplacementStrategies = tokenReplacementStrategies;
            this.strictMatching             = strictMatching;
        }
 protected AsyncExecutableApplicationFascade(IDataTypeFascade dataTypeFascade, IAppConfigFascade appConfigFascade, IReflectionFascade reflectionFascade, IAssemblyInformationFascade assemblyInformationFascade)
     : base(dataTypeFascade, appConfigFascade, reflectionFascade, assemblyInformationFascade)
 {
 }
示例#16
0
		public ConsoleApplicationFascade(IDataTypeFascade dataTypeFascade, IAppConfigFascade appConfigFascade, IReflectionFascade reflectionFascade, IAssemblyInformationFascade assemblyInformationFascade)
			: base(dataTypeFascade, appConfigFascade, reflectionFascade, assemblyInformationFascade)
		{
		}