Concordion.Internal.ConcordionBuilder.WithApprovedCommand C# (CSharp) Méthode

WithApprovedCommand() private méthode

private WithApprovedCommand ( string namespaceURI, string commandName, ICommand command ) : ConcordionBuilder
namespaceURI string
commandName string
command ICommand
Résultat ConcordionBuilder
        private ConcordionBuilder WithApprovedCommand(string namespaceURI, string commandName, ICommand command)
        {
            var exceptionCatchingDecorator = new ExceptionCatchingDecorator(new LocalTextDecorator(command));
            ExceptionListeners.ForEach(exceptionCatchingDecorator.AddExceptionListener);
            ICommand decoratedCommand = exceptionCatchingDecorator;
            CommandRegistry.Register(namespaceURI, commandName, decoratedCommand);
            return this;
        }