Exemplo n.º 1
0
 public FileSystemHelper(IApplicationEnvironment appEnv, IHostingEnvironment hostingEnv, ISmidgeConfig config, IUrlHelper urlHelper)
 {
     _appEnv = appEnv;
     _config = config;
     _urlHelper = urlHelper;
     _hostingEnv = hostingEnv;
 }
Exemplo n.º 2
0
 public DefaultUrlManager(IOptions<SmidgeOptions> options, ISmidgeConfig config, IHasher hasher, IUrlHelper urlHelper)
 {
     _hasher = hasher;
     _urlHelper = urlHelper;
     _options = options.Value.UrlOptions;
     _config = config;
 }
Exemplo n.º 3
0
 public FileSystemHelper(IHostingEnvironment hostingEnv, ISmidgeConfig config, IHasher hasher)
 {
     _hasher       = hasher;
     _config       = config;
     _hostingEnv   = hostingEnv;
     _fileProvider = hostingEnv.WebRootFileProvider;
 }
Exemplo n.º 4
0
 public ConfigCacheBuster(ISmidgeConfig config)
 {
     if (config == null)
     {
         throw new ArgumentNullException(nameof(config));
     }
     _config = config;
 }
Exemplo n.º 5
0
        public FileSystemHelper(IHostingEnvironment hostingEnv, ISmidgeConfig config, IFileProvider fileProvider, IHasher hasher)
#endif
        {
            _hasher       = hasher;
            _config       = config;
            _hostingEnv   = hostingEnv;
            _fileProvider = fileProvider;
        }
Exemplo n.º 6
0
        public FileSystemHelper(IHostingEnvironment hostingEnv, ISmidgeConfig config, IHasher hasher, IWebsiteInfo siteInfo)
#endif
        {
            _hasher       = hasher;
            _siteInfo     = siteInfo;
            _config       = config;
            _hostingEnv   = hostingEnv;
            _fileProvider = hostingEnv.WebRootFileProvider;
        }
Exemplo n.º 7
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="env"></param>
 /// <param name="config"></param>
 public SmidgeController(
     IApplicationEnvironment env, 
     ISmidgeConfig config, 
     FileSystemHelper fileSystemHelper, 
     IHasher hasher, 
     BundleManager bundleManager,
     IUrlManager urlManager)
 {
     _urlManager = urlManager;
     _hasher = hasher;
     _env = env;
     _config = config;
     _fileSystemHelper = fileSystemHelper;
     _bundleManager = bundleManager;
 }
Exemplo n.º 8
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="env"></param>
 /// <param name="config"></param>
 /// <param name="fileSystemHelper"></param>
 /// <param name="hasher"></param>
 /// <param name="bundleManager"></param>
 /// <param name="urlManager"></param>
 public SmidgeController(
     IApplicationEnvironment env,
     ISmidgeConfig config,
     FileSystemHelper fileSystemHelper,
     IHasher hasher,
     BundleManager bundleManager,
     IUrlManager urlManager)
 {
     _urlManager       = urlManager;
     _hasher           = hasher;
     _env              = env;
     _config           = config;
     _fileSystemHelper = fileSystemHelper;
     _bundleManager    = bundleManager;
 }
Exemplo n.º 9
0
        /// <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);
        }
Exemplo n.º 10
0
        /// <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);
        }
Exemplo n.º 11
0
 public FileSystemHelper(IWebHostEnvironment hostingEnv, ISmidgeConfig config, IHasher hasher)
Exemplo n.º 12
0
 public FileSystemHelper(IApplicationEnvironment appEnv, IHostingEnvironment hostingEnv, ISmidgeConfig config)
 {
     _appEnv     = appEnv;
     _config     = config;
     _hostingEnv = hostingEnv;
 }
Exemplo n.º 13
0
 public FileSystemHelper(IWebHostEnvironment hostingEnv, ISmidgeConfig config, IFileProvider fileProvider, IHasher hasher, IWebsiteInfo siteInfo)
Exemplo n.º 14
0
 public DefaultUrlManager(IOptions<SmidgeOptions> options, ISmidgeConfig config, IHasher hasher)
 {
     _hasher = hasher;
     _options = options.Options.UrlOptions;
     _config = config;
 }
Exemplo n.º 15
0
 public DefaultUrlManager(IOptions <SmidgeOptions> options, ISmidgeConfig config, IHasher hasher)
 {
     _hasher  = hasher;
     _options = options.Value.UrlOptions;
     _config  = config;
 }