Example #1
0
 public ClientCacheControlFilterAttribute(ClientCacheControl cacheType, double seconds = 60.0)
 {
     CacheType    = cacheType;
     CacheSeconds = seconds;
     if (cacheType == ClientCacheControl.NoCache)
     {
         CacheSeconds = -1;
     }
 }
Example #2
0
 public ClientCacheControlFilterAttribute(double seconds = 60.0)
 {
     CacheType    = ClientCacheControl.Private;
     CacheSeconds = seconds;
 }
Example #3
0
 public ClientCacheControlFilterAttribute(ClientCacheControl cacheControl, double seconds = 60.0)
 {
     CacheType    = cacheControl;
     CacheSeconds = seconds;
 }
 // TODO: If you need constructor arguments, create properties to hold them
 //       and public constructors that accept them.
 public ClientCacheControlFilter(double seconds = 60.0)
 {
     ChacheSeconds = seconds;
     CacheType     = ClientCacheControl.Private;
 }
Example #5
0
 public CacheFilter(ClientCacheControl cacheControl, double duration)
 {
     CacheControl = cacheControl;
     Duration     = duration;
 }