コード例 #1
0
        private void download_package(ValidatePackageMessage message)
        {
            this.Log().Info(() => "Validating Package: {0} Version: {1}".format_with(message.PackageId, message.PackageVersion));

            var tempInstallLocation = _fileSystem.combine_paths(_fileSystem.get_temp_path(), ApplicationParameters.Name, "TempInstall_" + DateTime.Now.ToString("yyyyMMdd_HHmmss_ffff"));
            _fileSystem.create_directory_if_not_exists(tempInstallLocation);

            var package = _nugetService.download_package(message.PackageId, message.PackageVersion, tempInstallLocation, _configurationSettings);

            EventManager.publish(new PackageReadyForValidationMessage(message.PackageId, message.PackageVersion, package, tempInstallLocation));
        }
コード例 #2
0
        private void download_package(ValidatePackageMessage message)
        {
            this.Log().Info(() => "Validating Package: {0} Version: {1}".format_with(message.PackageId, message.PackageVersion));

            var tempInstallLocation = _fileSystem.combine_paths(_fileSystem.get_temp_path(), ApplicationParameters.Name, "TempInstall_" + DateTime.Now.ToString("yyyyMMdd_HHmmss_ffff"));

            _fileSystem.create_directory_if_not_exists(tempInstallLocation);

            var package = _nugetService.download_package(message.PackageId, message.PackageVersion, tempInstallLocation, _configurationSettings);

            EventManager.publish(new PackageReadyForValidationMessage(message.PackageId, message.PackageVersion, package, tempInstallLocation));
        }