Etg.Yams.Storage.Config.AppDeploymentConfig.AddProperty C# (CSharp) Method

AddProperty() public method

public AddProperty ( string key, string value ) : AppDeploymentConfig
key string
value string
return AppDeploymentConfig
        public AppDeploymentConfig AddProperty(string key, string value)
        {
            if (Properties.ContainsKey(key))
            {
                return this;
            }
            Dictionary<string, string> dict = Properties.ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
            dict[key] = value;
            return new AppDeploymentConfig(AppIdentity, TargetClusters, dict);
        }