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)); }
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); } }