Beispiel #1
0
        /// <exclude />
        public PackageInstaller(IPackageInstallerUninstallerFactory packageInstallerUninstallerFactory, string zipFilename, string packageInstallDirectory, string tempDirectory, PackageInformation packageInformation)
        {
            if (packageInstallerUninstallerFactory == null)
            {
                throw new ArgumentNullException("packageInstallerUninstallerFactory");
            }
            if (string.IsNullOrEmpty(zipFilename))
            {
                throw new ArgumentNullException("zipFilename");
            }
            if (string.IsNullOrEmpty(packageInstallDirectory))
            {
                throw new ArgumentNullException("packageInstallDirectory");
            }
            if (string.IsNullOrEmpty(tempDirectory))
            {
                throw new ArgumentNullException("tempDirectory");
            }
            if (packageInformation == null)
            {
                throw new ArgumentNullException("packageInformation");
            }

            this.PackageInstallerUninstallerFactory = packageInstallerUninstallerFactory;
            this.ZipFilename             = zipFilename;
            this.PackageInstallDirectory = packageInstallDirectory;
            this.TempDirectory           = tempDirectory;
            this.PackageInformation      = packageInformation;
        }
Beispiel #2
0
        /// <exclude />
        public PackageInstaller(IPackageInstallerUninstallerFactory packageInstallerUninstallerFactory, string zipFilename, string packageInstallDirectory, string tempDirectory, PackageInformation packageInformation)
        {
            if (packageInstallerUninstallerFactory == null) throw new ArgumentNullException("packageInstallerUninstallerFactory");
            if (string.IsNullOrEmpty(zipFilename)) throw new ArgumentNullException("zipFilename");
            if (string.IsNullOrEmpty(packageInstallDirectory)) throw new ArgumentNullException("packageInstallDirectory");
            if (string.IsNullOrEmpty(tempDirectory)) throw new ArgumentNullException("tempDirectory");
            if (packageInformation == null) throw new ArgumentNullException("packageInformation");

            this.PackageInstallerUninstallerFactory = packageInstallerUninstallerFactory;
            this.ZipFilename = zipFilename;
            this.PackageInstallDirectory = packageInstallDirectory;
            this.TempDirectory = tempDirectory;
            this.PackageInformation = packageInformation;
        }