public ClientCacheControlFilterAttribute(ClientCacheControl cacheType, double seconds = 60.0) { CacheType = cacheType; CacheSeconds = seconds; if (cacheType == ClientCacheControl.NoCache) { CacheSeconds = -1; } }
public ClientCacheControlFilterAttribute(double seconds = 60.0) { CacheType = ClientCacheControl.Private; CacheSeconds = seconds; }
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; }
public CacheFilter(ClientCacheControl cacheControl, double duration) { CacheControl = cacheControl; Duration = duration; }