Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ContentStore"/> class.
        /// </summary>
        public ContentStore()
        {
            // Setup required components
            _fileStore = FileStoreManager.Default;
            _dataSerializer = DataSerializerManager.Default;
            _dataMapper = new DataMapper();

            // Setup file store event listener
            _fileStore.FileChanged += (sender, args) => _cacheDirty = true;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MediaVirtualFile"/> class.
 /// </summary>
 /// <param name="virtualPath">The virtual path to the resource represented by this instance.</param>
 public MediaVirtualFile(string virtualPath)
     : base(virtualPath)
 {
     _fileStore = FileStoreManager.Default;
 }