コード例 #1
0
        public AcsNamespace AddServiceIdentity(Action<ServiceIdentitySpec> configAction)
        {
            Guard.NotNull(() => configAction, configAction);

            var spec = new ServiceIdentitySpec();
            configAction(spec);

            this.commands.Add(new AddServiceIdentityCommand(spec));

            return this;
        }
コード例 #2
0
        public AddServiceIdentityCommand(ServiceIdentitySpec serviceIdentitySpec)
        {
            Guard.NotNull(() => serviceIdentitySpec, serviceIdentitySpec);

            this.serviceIdentitySpec = serviceIdentitySpec;
        }