Skip to content

Commit fab8472

Browse files
author
dabutvin
committed
Keep serialiser in sync with attribute.
The getter on Serialiser can new up this serialiser if it's not set. If the setting is changed in the app then it throws an exception for the mismatch
1 parent 06edbb8 commit fab8472

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DevTrends.MvcDonutCaching/DonutOutputCacheAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public DonutOutputCacheAttribute(IKeyBuilder keyBuilder) :
2828
this(
2929
new KeyGenerator(keyBuilder),
3030
new OutputCacheManager(OutputCache.Instance, keyBuilder),
31-
new DonutHoleFiller(new EncryptingActionSettingsSerialiser(new ActionSettingsSerialiser(), new Encryptor())),
31+
new DonutHoleFiller(HtmlHelperExtensions.Serialiser),
3232
new CacheSettingsManager(),
3333
new CacheHeadersHelper()
3434
)

0 commit comments

Comments
 (0)