Exemple #1
0
        public UpdatePackageDistribution AddDistribution(string name)
        {
            if (Distributions.Any(x => x.Name.Equals(name, StringComparison.OrdinalIgnoreCase)))
            {
                throw new ArgumentException($"The update package already has the channel {name}", nameof(name));
            }

            var channel = new UpdatePackageDistribution(name, Id);

            _distributions.Add(channel);

            return(channel);
        }
Exemple #2
0
 public void RemoveDistribution(UpdatePackageDistribution channel)
 {
     _distributions.Remove(channel);
 }