public RelyingPartySpec AddRuleGroup(Action<RuleGroupSpec> configAction) { Guard.NotNull(() => configAction, configAction); var cmds = new List<ICommand>(); var spec = new RuleGroupSpec(cmds, this.Name()); configAction(spec); this.Commands.Add(new AddRuleGroupCommand(spec)); this.Commands.AddRange(cmds); return this; }
public RelyingPartySpec AddRuleGroup(Action <RuleGroupSpec> configAction) { Guard.NotNull(() => configAction, configAction); var cmds = new List <ICommand>(); var spec = new RuleGroupSpec(cmds, this.Name()); configAction(spec); this.Commands.Add(new AddRuleGroupCommand(spec)); this.Commands.AddRange(cmds); return(this); }
public AddRuleGroupCommand(RuleGroupSpec ruleGroupSpec) { Guard.NotNull(() => ruleGroupSpec, ruleGroupSpec); this.ruleGroupSpec = ruleGroupSpec; }