コード例 #1
0
        public static ICompositeCommandBuilder DefineCompositeCatchAllCommand(this ICompositeCommandBuilder builder, Action <ICompositeCommandBuilder> action)
        {
            var childBuilder = new CompositeCommandBuilder();

            action(childBuilder);
            return(builder.DefineCatchAllCommand(childBuilder.Build()));
        }
コード例 #2
0
 public static ICompositeCommandBuilder DefineCatchAllCommand <TCommand>(this ICompositeCommandBuilder builder) where TCommand : class, ICommand <string[]>
 => builder.DefineCatchAllCommand(new CommandDefinition <TCommand, string[]>(null));
コード例 #3
0
 public static ICompositeCommandBuilder DefineCatchAllCommand <TCommand, TParameter>(this ICompositeCommandBuilder builder) where TCommand : class, ICommand <TParameter>
 => builder.DefineCatchAllCommand(new CommandDefinition <TCommand, TParameter>(null));