Exemple #1
0
        /// <summary>
        /// Creates <see cref="IDeploymentEngine"/> instances.
        /// </summary>
        /// <param name="deploymentContext">Custom deployment context</param>
        /// <returns><see cref="IDeploymentEngine"/></returns>
        public IDeploymentEngine CreatEngine(DeploymentContext deploymentContext)
        {
            var deploymentStartegyProvider = DeploymentStrategySource.GetStartegyProvider(deploymentContext);

            return(new DeploymentEngine(deploymentContext, deploymentStartegyProvider, PackagesFolderPath,
                                        RemotePackagesSources, UpdatePackages, AllowDowngrades));
        }
Exemple #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 public DeploymentConfiguration()
 {
     ProductConfigurationSource = new ProductConfigurationSource();
     PackageConfigurationSource = new PackageConfigurationSource();
     DeploymentStrategySource   = new DeploymentStrategySource();
     TransactionSource          = new DeploymentTransactionSource();
     PackageDeployer            = new PackageDeployer();
     PackageDiscoverer          = new PackageDiscoverer();
 }
Exemple #3
0
        /// <summary>
        /// Creates <see cref="IDeploymentEngine"/> instances.
        /// </summary>
        /// <param name="deploymentContext">Custom deployment context</param>
        /// <returns><see cref="IDeploymentEngine"/></returns>
        public IDeploymentEngine CreateEngine(DeploymentContext deploymentContext)
        {
            var deploymentStrategyProvider = DeploymentStrategySource.GetStrategyProvider(deploymentContext);

            return(new DeploymentEngine(deploymentContext, deploymentStrategyProvider, PackageDiscoverer,
                                        PackageDeployer, TransactionSource,
                                        PackagesFolderPath,
                                        RemotePackagesSources,
                                        LocalPackagesSources));
        }
Exemple #4
0
 /// <summary>
 /// Constructor
 /// </summary>
 public DeploymentConfiguration()
 {
     ProductConfigurationSource = new ProductConfigurationSource();
     PackageConfigurationSource = new PackageConfigurationSource();
     DeploymentStrategySource   = new DeploymentStrategySource();
 }