Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        public AddRuleGroupCommand(RuleGroupSpec ruleGroupSpec)
        {
            Guard.NotNull(() => ruleGroupSpec, ruleGroupSpec);

            this.ruleGroupSpec = ruleGroupSpec;
        }