Beispiel #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();
        }
        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();
        }
 public AssetEtagInvocationFilter(IEtagCache cache)
 {
     _cache = cache;
 }
Beispiel #4
0
        //private readonly IETagGenerator<T> _generator;

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