Example #1
0
            public void AddDeployModeProjectRule(LeagueFileDeployMode originalDeployMode, LeagueFileDeployMode targetDeployMode)
            {
                LeagueDeployModeProjectRule foundDeployModeProjectRule = _projectRules.Find(x => x.OriginalFileDeployMode == originalDeployMode);

                if (foundDeployModeProjectRule != null)
                {
                    _projectRules.Remove(foundDeployModeProjectRule);
                }
                _projectRules.Add(new LeagueDeployModeProjectRule(originalDeployMode, targetDeployMode));
            }
Example #2
0
            public LeagueFileDeployMode GetTargetDeployMode(LeagueFileDeployMode originalDeployMode)
            {
                LeagueDeployModeProjectRule foundRule = _projectRules.Find(x => x.OriginalFileDeployMode == originalDeployMode);

                if (foundRule != null)
                {
                    return(foundRule.TargetDeployMode);
                }
                else
                {
                    return(_projectRules.Find(x => x.OriginalFileDeployMode == LeagueFileDeployMode.Default).TargetDeployMode);
                }
            }