Beispiel #1
0
        public T GetNamed(string name)
        {
            var bundle = CacherFactory.Get <ApplicationCache>().Get <T>(CachePrefix + name);

            bundle.IgnoreCache = true;
            return(bundle);
        }
Beispiel #2
0
 public CSSBundle(IDebugStatusReader debugStatusReader)
     : base(new FileWriterFactory(new RetryableFileOpener(), 5), new FileReaderFactory(new RetryableFileOpener(), 5), debugStatusReader, new CurrentDirectoryWrapper(), new Hasher(new RetryableFileOpener()), CacherFactory.Get <ApplicationCache>())
 {
 }
Beispiel #3
0
 public void ClearCache()
 {
     CacherFactory.Get <ApplicationCache>().Clear();
     //CacherFactory.Get<MemoryCache>().Clear();
 }
Beispiel #4
0
 public string AsCached(string name, string filePath)
 {
     return(Render(filePath, name, new CacheRenderer(CachePrefix, name), CacherFactory.Get <ApplicationCache>()));
 }
Beispiel #5
0
 public string AsNamed(string name, string renderTo)
 {
     return(Render(renderTo, name, new FileRenderer(fileWriterFactory), CacherFactory.Get <ApplicationCache>()));
 }