private bool IsForAzure(string xmlConfigPath) { DeploymentModelHelper modelHelper = new DeploymentModelHelper(xmlConfigPath); modelHelper.Init(); return(modelHelper.IsForAzure()); }
public object GetDynamicParameters() { _runtimeParamsCollection = new RuntimeDefinedParameterDictionary(); if (File.Exists(XmlConfigPath) == false) { Console.WriteLine(Resources.InvalidXmlConfigPath); _isXmlPathValid = false; return(_runtimeParamsCollection); } _controller = new DeploymentModelHelper(XmlConfigPath); _controller.Init(); IEnumerable <string> paramsForModel = _controller.GetAllParameterNames; foreach (string paramForModel in paramsForModel) { RuntimeDefinedParameter dynamicParam = new RuntimeDefinedParameter() { Name = paramForModel, ParameterType = typeof(string), }; dynamicParam.Attributes.Add(new ParameterAttribute() { Mandatory = false }); _runtimeParamsCollection.Add(paramForModel, dynamicParam); } return(_runtimeParamsCollection); }
private bool IsForAzure(string xmlConfigPath) { DeploymentModelHelper modelHelper = new DeploymentModelHelper(xmlConfigPath); modelHelper.Init(); return modelHelper.IsForAzure(); }