/// <summary>
        ///   Add a new file provider
        /// </summary>
        /// <param name="fileProvider"> </param>
        public void Add(IViewFileProvider fileProvider)
        {
            if (fileProvider == null) throw new ArgumentNullException("fileProvider");

            _logger.Debug("Added new provider: " + fileProvider);
            _fileProviders.Add(fileProvider);
        }
        /// <summary>
        /// 添加一个新的模板文件提供者。
        /// </summary>
        /// <param name="viewFileProvider">模板文件提供者。</param>
        public void Add(IViewFileProvider viewFileProvider)
        {
            if (viewFileProvider == null)
            {
                throw new ArgumentNullException("viewFileProvider");
            }

            this.fileProviders.Add(viewFileProvider);
        }
Example #3
0
        /// <summary>
        ///   Add a new file provider
        /// </summary>
        /// <param name="fileProvider"> </param>
        public void Add(IViewFileProvider fileProvider)
        {
            if (fileProvider == null)
            {
                throw new ArgumentNullException("fileProvider");
            }

            _logger.Debug("Added new provider: " + fileProvider);
            _fileProviders.Add(fileProvider);
        }