Exemple #1
0
        public BipsDrive(PSDriveInfo driveInfo) : base(driveInfo)
        {
            _driveRoot = driveInfo.Root;
            _helper = new SsisDbHelper(_driveRoot);
            _cache = new PackageCache( this );

            if (File.Exists(_driveRoot) || Directory.Exists(_driveRoot))
            {
                return;
            }

            _proxy = new ServerPackageProxy(_driveRoot); 
            _proxy.Clear();
        }
Exemple #2
0
        public string[] GetLocalPackageFilePathsForProject(string packagePath)
        {
            var projectPath = GetProjectPath(packagePath);

            if (! ProjectExistsInCache(projectPath))
            {
                var helper = new SsisDbHelper(_serverName);

                var archive = helper.GetProjectArchiveFromServer(projectPath.Folder, projectPath.Project);
                ExpandProjectArchiveToLocalCache(packagePath, archive);
            }
            
            var cachePath = GetProjectCachePath(projectPath);
            return Directory.GetFiles(cachePath, "*.dtsx");
        }
Exemple #3
0
        public string[] GetLocalPackageFilePathsForProject(string packagePath)
        {
            var projectPath = GetProjectPath(packagePath);

            if (!ProjectExistsInCache(projectPath))
            {
                var helper = new SsisDbHelper(_serverName);

                var archive = helper.GetProjectArchiveFromServer(projectPath.Folder, projectPath.Project);
                ExpandProjectArchiveToLocalCache(packagePath, archive);
            }

            var cachePath = GetProjectCachePath(projectPath);

            return(Directory.GetFiles(cachePath, "*.dtsx"));
        }