コード例 #1
0
 /// <summary>
 /// Default constructor to provide the duration for caching.
 /// </summary>
 /// <param name="duration">The amount of seconds to cache your data</param>
 public WiredCacheAttribute(int duration)
 {
     _duration = duration;
     _configuration = ConfigurationManager.GetSection("wiredCaching") as CachingConfigSection;
 }
コード例 #2
0
 /// <summary>
 /// Default constructor to provide the duration for caching.
 /// </summary>
 /// <param name="duration">The amount of seconds to cache your data</param>
 public WiredCacheAttribute(int duration)
 {
     _duration      = duration;
     _configuration = ConfigurationManager.GetSection("wiredCaching") as CachingConfigSection;
 }