Esempio n. 1
0
        public AppDeploymentConfig RemoveClusterId(string clusterId)
        {
            if (!TargetClusters.Contains(clusterId))
            {
                return(this);
            }
            var clusterIds = TargetClusters.Where(c => c != clusterId);

            return(new AppDeploymentConfig(AppIdentity, clusterIds, Properties));
        }
Esempio n. 2
0
        public AppDeploymentConfig RemoveClusterId(string clusterId)
        {
            if (!TargetClusters.Contains(clusterId))
            {
                throw new InvalidOperationException();
            }
            var clusterIds = TargetClusters.Where(c => c != clusterId);

            return(new AppDeploymentConfig(AppIdentity, clusterIds, Properties));
        }
Esempio n. 3
0
        public AppDeploymentConfig AddClusterId(string clusterId)
        {
            if (TargetClusters.Contains(clusterId))
            {
                return(this);
            }
            var clusterIds = new HashSet <string>(TargetClusters)
            {
                clusterId
            };

            return(new AppDeploymentConfig(AppIdentity, clusterIds, Properties));
        }
Esempio n. 4
0
        public AppDeploymentConfig AddClusterId(string clusterId)
        {
            if (TargetClusters.Contains(clusterId))
            {
                throw new InvalidOperationException();
            }
            var clusterIds = new HashSet <string>(TargetClusters)
            {
                clusterId
            };

            return(new AppDeploymentConfig(AppIdentity, clusterIds, Properties));
        }