Esempio n. 1
0
 public void Alter(OutputCachingNode cachingNode)
 {
     if (_varyBy != null && _varyBy.Any())
     {
         cachingNode.ReplaceVaryByRules(_varyBy);
     }
 }
Esempio n. 2
0
 public void Alter(OutputCachingNode cachingNode)
 {
     if (_varyBy != null && _varyBy.Any())
     {
         cachingNode.ReplaceVaryByRules(_varyBy);
     }
 }
Esempio n. 3
0
        private static void addCaching(BehaviorChain chain, AssetContentCache assetCache)
        {
            var cacheNode = new OutputCachingNode
                            {
                                ETagCache = ObjectDef.ForValue(assetCache),
                                OutputCache = ObjectDef.ForValue(assetCache)
                            };

            chain.AddToEnd(cacheNode);
        }
Esempio n. 4
0
        public void Alter(BehaviorChain chain)
        {
            var node = chain.OfType<OutputCachingNode>().FirstOrDefault();
            if (node == null)
            {
                node = new OutputCachingNode();
                chain.AddToEnd(node);
            }

            if (_varyBy != null)
            {
                node.ReplaceVaryByRules(_varyBy);
            }
        }
Esempio n. 5
0
        public void Alter(BehaviorChain chain)
        {
            var node = chain.OfType <OutputCachingNode>().FirstOrDefault();

            if (node == null)
            {
                node = new OutputCachingNode();
                chain.AddToEnd(node);
            }

            if (_varyBy != null)
            {
                node.ReplaceVaryByRules(_varyBy);
            }
        }
Esempio n. 6
0
        private void addCaching(BehaviorChain chain)
        {
            var cacheNode = new OutputCachingNode{
                ETagCache = ObjectDef.ForValue(_assetCache),
                OutputCache = ObjectDef.ForValue(_assetCache)
            };

            chain.AddToEnd(cacheNode);
        }
Esempio n. 7
0
 public void SetUp()
 {
     theNode = new OutputCachingNode();
 }
        private static void addCaching(BehaviorChain chain)
        {
            var cacheNode = new OutputCachingNode();

            chain.AddToEnd(cacheNode);
        }