private void InitGlobalParams(DeploymentConfiguration config)
 {
     foreach (var taskParameter in config.GlobalParameters)
     {
         string key = GlobalParamKeyPrefix + taskParameter.Key;
         _globalParameters.Add(key, taskParameter.Value);
     }
 }
        public void InitialiseParametersFromConfiguration(DeploymentConfiguration config)
        {
            if (config.TaskParameters != null)
            {
                InitTaskParams(config);
            }

            if (config.GlobalParameters != null)
            {
                InitGlobalParams(config);
            }
        }
        private void InitTaskParams(DeploymentConfiguration config)
        {
            foreach (var taskConfig in config.TaskParameters)
            {
                string taskName = taskConfig.Key.ToLowerInvariant();

                foreach (var configItem in taskConfig.Value)
                {
                    string key = string.Format("{0}_{1}", taskName, configItem.Key);
                    _taskParameters.Add(key, configItem.Value);
                }
            }
        }