/// <summary>
 /// Knows how to read and write applications and packages to and from disk.
 /// </summary>
 public FileSystemRepository(IApplicationRepositoryConfiguration config)
 {
     this._rootFolder = Path.IsPathRooted(config.RootFolder) ? config.RootFolder : Path.GetFullPath(config.RootFolder);
     if (!Directory.Exists(this._rootFolder))
     {
         Directory.CreateDirectory(this._rootFolder);
     }
     this._tempFolder = Path.IsPathRooted(config.TempFolder) ? config.TempFolder : Path.GetFullPath(config.TempFolder);
     if (!Directory.Exists(this._tempFolder))
     {
         Directory.CreateDirectory(this._tempFolder);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Knows how to read and write applications and packages to and from disk.
 /// </summary>
 public FileSystemApplicationRepository(IApplicationRepositoryConfiguration config)
 {
     this.RootFolder = Path.IsPathRooted(config.RootFolder) ? config.RootFolder : Path.GetFullPath(config.RootFolder);
     this.TempFolder = Path.IsPathRooted(config.TempFolder) ? config.TempFolder : Path.GetFullPath(config.TempFolder);
 }
		/// <summary>
		/// Knows how to read and write applications and packages to and from disk.
		/// </summary>
		public FileSystemApplicationRepository(IApplicationRepositoryConfiguration config) {
			this.RootFolder = Path.IsPathRooted(config.RootFolder) ? config.RootFolder : Path.GetFullPath(config.RootFolder);
			this.TempFolder = Path.IsPathRooted(config.TempFolder) ? config.TempFolder : Path.GetFullPath(config.TempFolder);
		}
		/// <summary>
		/// Knows how to read and write applications and packages to and from disk.
		/// </summary>
		public FileSystemRepository(IApplicationRepositoryConfiguration config) {
			this._rootFolder = Path.IsPathRooted(config.RootFolder) ? config.RootFolder : Path.GetFullPath(config.RootFolder);
			if (!Directory.Exists(this._rootFolder)) Directory.CreateDirectory(this._rootFolder);
			this._tempFolder = Path.IsPathRooted(config.TempFolder) ? config.TempFolder : Path.GetFullPath(config.TempFolder);
			if(!Directory.Exists(this._tempFolder)) Directory.CreateDirectory(this._tempFolder);
		}