Esempio n. 1
0
 internal static BotCommand Define(string label, BotAction action)
 {
     return(new BotCommand
     {
         Label = label,
         Action = action
     });
 }
Esempio n. 2
0
 internal static BotCommand <TIn, TOut> Define <TIn, TOut> (string label, BotAction action, Func <TIn, TOut> dataFactory)
 {
     return(new BotCommand <TIn, TOut>
            (
                label,
                action,
                dataFactory
            ));
 }