public DonutOutputCacheAttribute() { var keyBuilder = new KeyBuilder(); _keyGenerator = new KeyGenerator(keyBuilder); _donutHoleFiller = new DonutHoleFiller(new EncryptingActionSettingsSerialiser(new ActionSettingsSerialiser(), new Encryptor())); _outputCacheManager = new OutputCacheManager(OutputCache.Instance, keyBuilder); _cacheSettingsManager = new CacheSettingsManager(); _cacheHeadersHelper = new CacheHeadersHelper(); Duration = -1; Location = (OutputCacheLocation)(-1); }
public DonutOutputCacheAttribute() { var keyBuilder = new KeyBuilder(); _keyGenerator = new KeyGenerator(keyBuilder); _donutHoleFiller = new DonutHoleFiller(new EncryptingActionSettingsSerialiser(new ActionSettingsSerialiser(), new Encryptor())); _outputCacheManager = new OutputCacheManager(OutputCache.Instance, keyBuilder); _cacheSettingsManager = new CacheSettingsManager(); _cacheHeadersHelper = new CacheHeadersHelper(); Duration = -1; Location = (OutputCacheLocation)(-1); }