예제 #1
0
        public OutputCachingBehavior(IActionBehavior inner, IOutputCache cache, IOutputWriter writer,
                                     ICurrentChain currentChain, IEtagCache etagCache)
        {
            _inner        = inner;
            _cache        = cache;
            _writer       = writer;
            _currentChain = currentChain;
            _etagCache    = etagCache;

            Invoker        = x => x.Invoke();
            PartialInvoker = x => x.InvokePartial();
        }
예제 #2
0
        public OutputCachingBehavior(IActionBehavior inner, IOutputCache cache, IOutputWriter writer,
            ICurrentChain currentChain, IEtagCache etagCache)
        {
            _inner = inner;
            _cache = cache;
            _writer = writer;
            _currentChain = currentChain;
            _etagCache = etagCache;

            Invoker = x => x.Invoke();
            PartialInvoker = x => x.InvokePartial();
        }
예제 #3
0
 public AssetEtagInvocationFilter(IEtagCache cache)
 {
     _cache = cache;
 }
예제 #4
0
        //private readonly IETagGenerator<T> _generator;

        //, IETagGenerator<T> generator
        public ETagHandler(IEtagCache cache)
        {
            _cache = cache;
            //_generator = generator;
        }
예제 #5
0
 public AssetEtagInvocationFilter(IEtagCache cache)
 {
     _cache = cache;
 }