Example #1
0
 public DataPath(string repositoryName)
 {
     var repository = new Repository(repositoryName);
     var repositoryPath = new RepositoryPath(repository);
     this.PhysicalPath = Path.Combine(repositoryPath.PhysicalPath, DirName);
     this.VirtualPath = UrlUtility.Combine(repositoryPath.VirtualPath, DirName);
 }
Example #2
0
        public PendingWorkflowItemPath(PendingWorkflowItem pendingWorkflowItem)
        {
            var repositoryPath = new RepositoryPath(pendingWorkflowItem.Repository);

            this.PhysicalPath = SettingFile = Path.Combine(repositoryPath.PhysicalPath, PATH_NAME, pendingWorkflowItem.RoleName, GetFileName(pendingWorkflowItem));

            this.VirtualPath = UrlUtility.Combine(repositoryPath.VirtualPath, PATH_NAME, pendingWorkflowItem.RoleName, GetFileName(pendingWorkflowItem));
        }
Example #3
0
        public PendingWorkflowItemPath(Repository repository, string roleName)
        {
            var repositoryPath = new RepositoryPath(repository);

            PhysicalPath = Path.Combine(repositoryPath.PhysicalPath, PATH_NAME, roleName);

            VirtualPath = UrlUtility.Combine(repositoryPath.VirtualPath, PATH_NAME, roleName);

            Bsc.Dmtds.Common.IO.IOUtility.EnsureDirectoryExists(PhysicalPath);
        }
Example #4
0
 public BroadcastingPath(Repository repository)
 {
     var repositoryPath = new RepositoryPath(repository);
     this.PhysicalPath = Path.Combine(repositoryPath.PhysicalPath, DIR);
 }
Example #5
0
        public WorkflowPath(Repository repository)
        {
            var repositoryPath = new RepositoryPath(repository);

            PhysicalPath = Path.Combine(repositoryPath.PhysicalPath, PATH_NAME);

            VirtualPath = UrlUtility.Combine(repositoryPath.VirtualPath, PATH_NAME);

            Bsc.Dmtds.Common.IO.IOUtility.EnsureDirectoryExists(PhysicalPath);
        }
Example #6
0
 public static string GetBasePhysicalPath(Repository repository)
 {
     var repositoryPath = new RepositoryPath(repository);
     return Path.Combine(repositoryPath.PhysicalPath, SearchDir.DirName);
 }