示例#1
0
 private static void ReadConfigFile()
 {
     var xmlSerializer = new XmlSerializer(typeof (DeploymentConfiguration));
     _deploymentConfiguration = (DeploymentConfiguration) xmlSerializer.Deserialize(new StreamReader(CONFIG_FILE, false));
 }
 public ParallelDeployment(DeploymentConfiguration deploymentConfiguration)
 {
     _deploymentConfiguration = deploymentConfiguration;
 }
示例#3
0
 private static void CreateConfigFile()
 {
     var xmlSerializer = new XmlSerializer(typeof(DeploymentConfiguration));
     var emptyConfig = new DeploymentConfiguration();
     xmlSerializer.Serialize(new StreamWriter(CONFIG_FILE, false), emptyConfig);
 }