Octopus.Client.Model.ChannelResource.AddCommonRuleForAllActions C# (CSharp) Method

AddCommonRuleForAllActions() public method

public AddCommonRuleForAllActions ( string versionRange, string tagRegex, DeploymentProcessResource process ) : ChannelResource
versionRange string
tagRegex string
process DeploymentProcessResource
return ChannelResource
        public ChannelResource AddCommonRuleForAllActions(string versionRange, string tagRegex, DeploymentProcessResource process)
        {
            var actionsWithPackage = process.Steps.SelectMany(s => s.Actions.Where(a => a.Properties.Any(p => p.Key == "Octopus.Action.Package.PackageId"))).ToArray();
            return AddRule(versionRange, tagRegex, actionsWithPackage);
        }