/// <summary> /// Constructor /// </summary> /// <param name="context"></param> /// <param name="config"></param> /// <param name="fileManager"></param> /// <param name="fileSystemHelper"></param> /// <param name="request"></param> public SmidgeHelper( SmidgeContext context, ISmidgeConfig config, PreProcessManager fileManager, FileSystemHelper fileSystemHelper, IHasher hasher, BundleManager bundleManager, IHttpContextAccessor http, PreProcessPipelineFactory processorFactory) { _processorFactory = processorFactory; _bundleManager = bundleManager; _hasher = hasher; _fileManager = fileManager; _context = context; _config = config; _fileSystemHelper = fileSystemHelper; _request = http.HttpContext.Request; _fileBatcher = new FileBatcher(_fileSystemHelper, _request, _hasher); }
/// <summary> /// Constructor /// </summary> /// <param name="context"></param> /// <param name="config"></param> /// <param name="fileManager"></param> /// <param name="fileSystemHelper"></param> /// <param name="hasher"></param> /// <param name="bundleManager"></param> /// <param name="http"></param> /// <param name="processorFactory"></param> public SmidgeHelper( SmidgeContext context, ISmidgeConfig config, PreProcessManager fileManager, FileSystemHelper fileSystemHelper, IHasher hasher, BundleManager bundleManager, IHttpContextAccessor http, PreProcessPipelineFactory processorFactory) { _processorFactory = processorFactory; _bundleManager = bundleManager; _hasher = hasher; _fileManager = fileManager; _context = context; _config = config; _fileSystemHelper = fileSystemHelper; _request = http.HttpContext.Request; _fileBatcher = new FileBatcher(_fileSystemHelper, _request, _hasher); }
/// <summary> /// Constructor /// </summary> /// <param name="fileSetGenerator"></param> /// <param name="dynamicallyRegisteredWebFiles"></param> /// <param name="preProcessManager"></param> /// <param name="fileSystemHelper"></param> /// <param name="hasher"></param> /// <param name="bundleManager"></param> /// <param name="processorFactory"></param> /// <param name="urlManager"></param> /// <param name="requestHelper"></param> /// <param name="httpContextAccessor"></param> /// <param name="cacheBusterResolver"></param> public SmidgeHelper( IBundleFileSetGenerator fileSetGenerator, DynamicallyRegisteredWebFiles dynamicallyRegisteredWebFiles, PreProcessManager preProcessManager, FileSystemHelper fileSystemHelper, IHasher hasher, IBundleManager bundleManager, PreProcessPipelineFactory processorFactory, IUrlManager urlManager, IRequestHelper requestHelper, IHttpContextAccessor httpContextAccessor, CacheBusterResolver cacheBusterResolver) { if (fileSetGenerator == null) { throw new ArgumentNullException(nameof(fileSetGenerator)); } if (dynamicallyRegisteredWebFiles == null) { throw new ArgumentNullException(nameof(dynamicallyRegisteredWebFiles)); } if (preProcessManager == null) { throw new ArgumentNullException(nameof(preProcessManager)); } if (fileSystemHelper == null) { throw new ArgumentNullException(nameof(fileSystemHelper)); } if (bundleManager == null) { throw new ArgumentNullException(nameof(bundleManager)); } if (processorFactory == null) { throw new ArgumentNullException(nameof(processorFactory)); } if (urlManager == null) { throw new ArgumentNullException(nameof(urlManager)); } if (requestHelper == null) { throw new ArgumentNullException(nameof(requestHelper)); } if (httpContextAccessor == null) { throw new ArgumentNullException(nameof(httpContextAccessor)); } if (cacheBusterResolver == null) { throw new ArgumentNullException(nameof(cacheBusterResolver)); } _fileSetGenerator = fileSetGenerator; _processorFactory = processorFactory; _urlManager = urlManager; _requestHelper = requestHelper; _httpContextAccessor = httpContextAccessor; _cacheBusterResolver = cacheBusterResolver; _bundleManager = bundleManager; _preProcessManager = preProcessManager; _dynamicallyRegisteredWebFiles = dynamicallyRegisteredWebFiles; _fileSystemHelper = fileSystemHelper; _fileBatcher = new FileBatcher(_fileSystemHelper, _requestHelper, hasher); }