示例#1
0
文件: DataPath.cs 项目: eyouyou/Bsc
 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);
 }
示例#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));
        }
示例#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);
        }
示例#4
0
 public BroadcastingPath(Repository repository)
 {
     var repositoryPath = new RepositoryPath(repository);
     this.PhysicalPath = Path.Combine(repositoryPath.PhysicalPath, DIR);
 }
示例#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);
        }
示例#6
0
文件: SearchDir.cs 项目: eyouyou/Bsc
 public static string GetBasePhysicalPath(Repository repository)
 {
     var repositoryPath = new RepositoryPath(repository);
     return Path.Combine(repositoryPath.PhysicalPath, SearchDir.DirName);
 }