Ejemplo n.º 1
0
 public DisposeHelper(LockFile lockFile)
 {
     this.lockFile = lockFile;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PersistentCache"/> for the given filename and cache type.
 /// </summary>
 /// <param name="filename"></param>
 /// <param name="persister"></param>
 public PersistentCache(string filename, CacheItemPersister persister)
 {
     this.persister = persister;
     dataFile       = new FileInfo(filename);
     lockFile       = new LockFile(filename + ".lock");
 }
Ejemplo n.º 3
0
        private DateTime timestamp; // last-modified time of dataFile when cache data was last known to be in sync

        #endregion Fields

        #region Constructors

        /// <summary>
        /// Initializes a new instance of the <see cref="PersistentCache"/> for the given filename and cache type.
        /// </summary>
        /// <param name="filename"></param>
        /// <param name="persister"></param>
        public PersistentCache(string filename, CacheItemPersister persister)
        {
            this.persister = persister;
            dataFile = new FileInfo(filename);
            lockFile = new LockFile(filename + ".lock");
        }
Ejemplo n.º 4
0
 public DisposeHelper(LockFile lockFile)
 {
     this.lockFile = lockFile;
 }