public CachingUrlParserDecorator(IUrlParser inner, IPersister persister, IWebContext webContext, CacheWrapper cache) { this.inner = inner; this.persister = persister; this.webContext = webContext; this.cache = cache; }
public CachingUrlParserDecorator(IUrlParser inner, IPersister persister, IWebContext webContext, CacheWrapper cache, HostSection config) { this.inner = inner; this.persister = persister; this.webContext = webContext; this.cache = cache; SlidingExpiration = config.OutputCache.SlidingExpiration ?? TimeSpan.FromMinutes(15); }