示例#1
0
        public Deployer(IJsonSearlizer searlizer,IDeployRecorder recorder)
        {
            if (searlizer == null) { throw new ArgumentNullException("searlizer"); }

            this.Searlizer = searlizer;
            this.DeployRecorder = recorder;
        }
        /// <summary>
        /// This accepts a JSON string, it will convert ito to an instance of MSDeployDeploymentParameters
        /// </summary>       
        public static MSDeployDeploymentParameters BuildFromString(string deploymentParameters, IJsonSearlizer searlizer)
        {
            if (string.IsNullOrEmpty(deploymentParameters)) { throw new ArgumentNullException("deploymentParameters"); }
            if (searlizer == null) { throw new ArgumentNullException("searlizer"); }

            return searlizer.Desearlize<MSDeployDeploymentParameters>(deploymentParameters);
        }
        public ConfigController(IPackageRepository pkgRepositiry, IJsonSearlizer jsonSearlizer)
        {
            if (pkgRepositiry == null) { throw new ArgumentNullException("pkgRepositiry"); }
            if (jsonSearlizer == null) { throw new ArgumentNullException("jsonSearlizer"); }

            this.PackageRepository = pkgRepositiry;
            this.JsonSearlizer = jsonSearlizer;
        }
 public MSDeployHandler(IJsonSearlizer searlizer)
 {
     this.Searlizer = searlizer;
 }