コード例 #1
0
 public StoreItemMetadata(string itemFileName, BundleCacheData data, IBundleCacheOptions cacheOptions)
 {
     ItemFileName       = itemFileName;
     Timestamp          = data.Timestamp;
     Version            = data.Version;
     AbsoluteExpiration = cacheOptions.AbsoluteExpiration;
     SlidingExpiration  = cacheOptions.SlidingExpiration;
 }
コード例 #2
0
 public BundleCacheOptions(IBundleCacheOptions other)
 {
     if (other != null)
     {
         NoCache            = other.NoCache;
         AbsoluteExpiration = other.AbsoluteExpiration;
         SlidingExpiration  = other.SlidingExpiration;
         Priority           = other.Priority;
     }
 }
コード例 #3
0
 public BundleConfigurer UseCacheOptions(IBundleCacheOptions cacheOptions)
 {
     Bundle.CacheOptions = cacheOptions;
     return(this);
 }