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); }
public void RemoveDistribution(UpdatePackageDistribution channel) { _distributions.Remove(channel); }