예제 #1
0
 public Decorator.VFS GetVFS()
 {
     using (var result = new Decorator.VFS(Constants.DATA_IDX, _VFSModeAdapter.GetStringVFSMode(VFSMode.Read)))
     {
         return(result);
     }
 }
예제 #2
0
 public VFSStream GetVFSStream(Decorator.VFS vfs)
 {
     Validations.NotNull(vfs);
     using (var result = new VFSStream(vfs))
     {
         return(result);
     }
 }
예제 #3
0
        public VFSFacadeBase(VFSFactory vfsFactory, VFSModeAdapterFacory vfsModeAdapterFacory, Decorator.VFS vfs)
        {
            _vfsFactory           = Validations.NotNull(vfsFactory);
            _vfsModeAdapterFacory = Validations.NotNull(vfsModeAdapterFacory);
            _vfs = Validations.NotNull(vfs);

            //_vfsModeAdapterFacory = new VFSModeAdapterFacory();
            //_vfsFactory = new VFSFactory(_vfsModeAdapterFacory);
            //_vfs = _vfsFactory.GetVFS();
        }
예제 #4
0
 public VFSReadFacade(VFSFactory vfsFactory, VFSModeAdapterFacory vfsModeAdapterFacory, Decorator.VFS vfs)
     : base(vfsFactory, vfsModeAdapterFacory, vfs)
 {
     _vfsStream   = _vfsFactory.GetVFSStream(_vfs);
     VFSFileNames = new ArraySegment <string>();
     VFSModel     = new ArraySegment <VFSModel>();
 }
예제 #5
0
 public VFSExtractFacade(VFSFactory vfsFactory, VFSModeAdapterFacory vfsModeAdapterFacory, Decorator.VFS vfs)
     : base(vfsFactory, vfsModeAdapterFacory, vfs)
 {
     _vfsExtract = new VFSExtract();
 }