public AcsNamespace AddRelyingParty(Action <RelyingPartySpec> configAction) { Guard.NotNull(() => configAction, configAction); var cmds = new List <ICommand>(); var spec = new RelyingPartySpec(cmds); configAction(spec); this.commands.Add(new AddRelyingPartyCommand(spec)); this.commands.AddRange(cmds); return(this); }
public AddRelyingPartyCommand(RelyingPartySpec relyingPartySpec) { Guard.NotNull(() => relyingPartySpec, relyingPartySpec); this.relyingPartySpec = relyingPartySpec; }