public void Alter(OutputCachingNode cachingNode) { if (_varyBy != null && _varyBy.Any()) { cachingNode.ReplaceVaryByRules(_varyBy); } }
private static void addCaching(BehaviorChain chain, AssetContentCache assetCache) { var cacheNode = new OutputCachingNode { ETagCache = ObjectDef.ForValue(assetCache), OutputCache = ObjectDef.ForValue(assetCache) }; chain.AddToEnd(cacheNode); }
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); } }
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); } }
private void addCaching(BehaviorChain chain) { var cacheNode = new OutputCachingNode{ ETagCache = ObjectDef.ForValue(_assetCache), OutputCache = ObjectDef.ForValue(_assetCache) }; chain.AddToEnd(cacheNode); }
public void SetUp() { theNode = new OutputCachingNode(); }
private static void addCaching(BehaviorChain chain) { var cacheNode = new OutputCachingNode(); chain.AddToEnd(cacheNode); }