Esempio n. 1
0
        IVfsFileInfo IVfsFilesystem.FileInfo(IVfsPath path)
        {
            var file = new VfsBakedAsset_FileInfo(db, bac, this, path);
            var com  = new VfsBakedAsset_Common(db, bac, this, null, file, path);

            file._attachCom(com);

            return(file);
        }
Esempio n. 2
0
        public VfsBakedAsset_Common(IMongoDatabase db, IMongoCollection <BakedAssets> bac, VfsBakedAssets vfsBakedAssets, VfsBakedAsset_Directory dir, VfsBakedAsset_FileInfo file, IVfsPath path)
        {
            this.db             = db;
            this.bac            = bac;
            this.vfsBakedAssets = vfsBakedAssets;
            this.dir            = dir;
            this.file           = file;
            this.path           = path;

            if (dir != null)
            {
                com = dir;
            }
            if (file != null)
            {
                com = file;
            }
        }