/// <summary>
        /// Устанавливает компонент для определения типа команды.
        /// </summary>
        /// <param name="resolver">Компонент для определения типа команды.</param>
        /// <returns>Экземпляр билдера.</returns>
        /// <exception cref="ArgumentNullException">Если <paramref name="resolver"/> равен <c>null</c>.</exception>
        public CommandParserBuilder WithTypeResolver(ICommandTypeResolver resolver)
        {
            if (resolver == null)
            {
                throw new ArgumentNullException(nameof(resolver));
            }

            _typeResolverProvider = () => resolver;
            return(this);
        }
 public CustomCommandTypeResolver(Func <ICommandParserSettings> settingsProvider)
 {
     _sourceTypeResolver = new VerbAttributeBasedCommandTypeResolver(settingsProvider);
 }