public OutputCachingBehavior(IOutputCache cache, IOutputWriter writer,
     IResourceHash hash, IHeadersCache headersCache)
 {
     _cache = cache;
     _writer = writer;
     _hash = hash;
     _headersCache = headersCache;
 }
示例#2
0
 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;
 }
示例#6
0
 public EtagInvocationFilter(IHeadersCache headerCache)
     : this(headerCache, args => args.Get <ICurrentChain>().ResourceHash())
 {
 }
示例#7
0
 public EtagInvocationFilter(IHeadersCache cache, Func <ServiceArguments, string> hashing)
 {
     _cache   = cache;
     _hashing = hashing;
 }
示例#8
0
 public AssetContentCache(IHeadersCache headers, IOutputCache outputCache)
 {
     _headers     = headers;
     _outputCache = outputCache;
 }
示例#9
0
 public EtagInvocationFilter(IHeadersCache headerCache)
     : this(headerCache, args => args.Get<ICurrentChain>().ResourceHash())
 {
 }
示例#10
0
 public EtagInvocationFilter(IHeadersCache cache, Func<ServiceArguments, string> hashing)
 {
     _cache = cache;
     _hashing = hashing;
 }