public DefaultNonCachedLessCssLoaderFactory( ITextFileLoader contentLoader, SourceMappingMarkerInjectionOptions sourceMappingMarkerInjection, ErrorBehaviourOptions errorBehaviour, ILogEvents logger) { if (contentLoader == null) { throw new ArgumentNullException("contentLoader"); } if (!Enum.IsDefined(typeof(SourceMappingMarkerInjectionOptions), sourceMappingMarkerInjection)) { throw new ArgumentOutOfRangeException("sourceMappingMarkerInjection"); } if (!Enum.IsDefined(typeof(ErrorBehaviourOptions), errorBehaviour)) { throw new ArgumentOutOfRangeException("lineNumberInjectionBehaviour"); } if (logger == null) { throw new ArgumentNullException("logger"); } _contentLoader = contentLoader; _sourceMappingMarkerInjection = sourceMappingMarkerInjection; _errorBehaviour = errorBehaviour; _logger = logger; }
public DefaultNonCachedLessCssLoaderFactory( IRelativePathMapper pathMapper, SourceMappingMarkerInjectionOptions sourceMappingMarkerInjection, ErrorBehaviourOptions errorBehaviour, ILogEvents logger) : this(new SimpleTextFileContentLoader(pathMapper), sourceMappingMarkerInjection, errorBehaviour, logger) { }