public OutputCachingBehavior(IOutputCache cache, IOutputWriter writer, IResourceHash hash, IHeadersCache headersCache) { _cache = cache; _writer = writer; _hash = hash; _headersCache = headersCache; }
public OutputCachingBehavior(IOutputCache cache, IOutputWriter writer, IResourceHash hash, IHeadersCache headersCache, ILogger logger) { _cache = cache; _writer = writer; _hash = hash; _headersCache = headersCache; _logger = logger; }
public void SetUp() { file1 = new AssetFile("1"); file2 = new AssetFile("2"); file3 = new AssetFile("3"); file4 = new AssetFile("4"); file5 = new AssetFile("5"); file6 = new AssetFile("6"); theOutputCache = MockRepository.GenerateMock <IOutputCache>(); headersCache = MockRepository.GenerateMock <IHeadersCache>(); theCache = new AssetContentCache(headersCache, theOutputCache); theGraph = BehaviorGraph.BuildFrom(new FubuRegistry()); }
public void SetUp() { file1 = new AssetFile("1"); file2 = new AssetFile("2"); file3 = new AssetFile("3"); file4 = new AssetFile("4"); file5 = new AssetFile("5"); file6 = new AssetFile("6"); theOutputCache = MockRepository.GenerateMock<IOutputCache>(); headersCache = MockRepository.GenerateMock<IHeadersCache>(); theCache = new AssetContentCache(headersCache, theOutputCache); theGraph = BehaviorGraph.BuildFrom(new FubuRegistry()); }
public AssetContentCache(IHeadersCache headers, IOutputCache outputCache) { _headers = headers; _outputCache = outputCache; }
public EtagInvocationFilter(IHeadersCache headerCache) : this(headerCache, args => args.Get <ICurrentChain>().ResourceHash()) { }
public EtagInvocationFilter(IHeadersCache cache, Func <ServiceArguments, string> hashing) { _cache = cache; _hashing = hashing; }
public EtagInvocationFilter(IHeadersCache headerCache) : this(headerCache, args => args.Get<ICurrentChain>().ResourceHash()) { }
public EtagInvocationFilter(IHeadersCache cache, Func<ServiceArguments, string> hashing) { _cache = cache; _hashing = hashing; }