Ejemplo n.º 1
0
        private void Initialize()
        {
            // Add the default fallback processors.
            var defaultProcessors = new List <SectionProcessor>()
            {
                new SectionProcessor("js", new JsProcessor()),
                new SectionProcessor("css", new CssProcessor())
            };

            foreach (var processor in defaultProcessors)
            {
                _options.Processors.Add(processor);
            }

            // Create the FileVersionProvider.
            _fileVersionProvider = new FileVersionProvider(
                _env.WebRootFileProvider,
                _memoryCache,
                new PathString());
        }
Ejemplo n.º 2
0
		private void Initialize()
		{
			// Add the default fallback processors.
			var defaultProcessors = new List<SectionProcessor>()
			{
				new SectionProcessor("js", new JsProcessor()),
				new SectionProcessor("css", new CssProcessor())
			};
			foreach (var processor in defaultProcessors)
			{
				_options.Processors.Add(processor);
			}

			// Create the FileVersionProvider.
			_fileVersionProvider = new FileVersionProvider(
					_env.WebRootFileProvider,
					_memoryCache,
					new PathString());
		}