예제 #1
0
 public CommonInstaller(string installerPath, CommonInstallOptions options)
 {
     if (string.IsNullOrWhiteSpace(installerPath))
     {
         throw new ArgumentException("Installer path can not be null or whitespace.");
     }
     this.InstallerPath = installerPath;
     this.Options       = options ?? throw new ArgumentNullException("Install options is null");
 }
예제 #2
0
 public CommonInstaller(string installerPath, CommonInstallOptions options)
 {
     if (string.IsNullOrWhiteSpace(installerPath))
     {
         throw new ArgumentException("Installer path can not be null or whitespace.");
     }
     this.InstallerPath = installerPath;
     if (string.IsNullOrWhiteSpace(options.GameRootPath))
     {
         throw new ArgumentException("Game root path in options can not be null or whitespace.");
     }
     this.Options = options;
 }