/ViewStateHandlers/TinyPagePersister/TinyPagePersisterConfigurationHandler.cs
C# | 26 lines | 23 code | 3 blank | 0 comment | 0 complexity | f0aa70825c5bf89305c0c92b8c4d0a80 MD5 | raw file
- using System.Configuration;
-
- namespace Rioshu.Web.ViewStateHandlers
- {
- public class TinyPagePersisterConfigurationHandler : ConfigurationSection
- {
- [ConfigurationProperty("fieldName", DefaultValue = "__VSTATE")]
- public string FieldName
- {
- get { return this["fieldName"].ToString(); }
- }
-
- [ConfigurationProperty("compressionType", DefaultValue = CompressionType.GZip)]
- public CompressionType CompressionType
- {
- get { return (CompressionType) this["compressionType"]; }
- }
-
- public static TinyPagePersisterConfigurationHandler GetConfiguration()
- {
- return
- ConfigurationManager.GetSection("viewStateHandlers/tinyPagePersister") as
- TinyPagePersisterConfigurationHandler;
- }
- }
- }