You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MyCacheOutputAttribute.cs 454B

123456789101112131415
  1. using System.IO;
  2. using iiie.CacheControl.Business.Attributes;
  3. using iiie.CacheControl.Business.OutputCache;
  4. namespace CacheControl_test.Controllers
  5. {
  6. public class MyCacheOutputAttribute : TimeCacheControlAttribute
  7. {
  8. public MyCacheOutputAttribute(int seconds) : base(seconds)
  9. {
  10. CacheOutputData = Path.Combine(Path.GetTempPath(), "cache-control-test");
  11. CacheType = OutputCacheType.File;
  12. }
  13. }
  14. }