Microsoft.Bot.Builder.Dialogs.CommandDialog< T > Class Template Reference

Dialog that dispatches based on a regex matching input. More...

Inheritance diagram for Microsoft.Bot.Builder.Dialogs.CommandDialog< T >:

Classes

class  Command
 A single command. More...
 

Public Member Functions

virtual async Task MessageReceived (IDialogContext context, IAwaitable< Connector.IMessageActivity > message)
 
CommandDialog< T > On< U > (Regex expression, ResumeAfter< Connector.IMessageActivity > handler, ResumeAfter< U > resultHandler=null)
 Define a handler that is fired on a regular expression match of a message. More...
 
CommandDialog< T > OnDefault< U > (ResumeAfter< Connector.IMessageActivity > handler, ResumeAfter< U > resultHandler=null)
 Define the default action if no match. More...
 
virtual async Task ResultHandler< U > (IDialogContext context, IAwaitable< U > result)
 The result handler of the command dialog passed to the child dialogs. More...
 

Detailed Description

Dialog that dispatches based on a regex matching input.

Definition at line 50 of file CommandDialog.cs.

Member Function Documentation

virtual async Task Microsoft.Bot.Builder.Dialogs.CommandDialog< T >.MessageReceived ( IDialogContext  context,
IAwaitable< Connector.IMessageActivity message 
)
inlinevirtual

Definition at line 86 of file CommandDialog.cs.

CommandDialog<T> Microsoft.Bot.Builder.Dialogs.CommandDialog< T >.On< U > ( Regex  expression,
ResumeAfter< Connector.IMessageActivity handler,
ResumeAfter< U >  resultHandler = null 
)
inline

Define a handler that is fired on a regular expression match of a message.

Template Parameters
UType of input to result handler.
Parameters
expressionRegular expression to match.
handlerHandler to call on match.
resultHandlerOptional result handler to be called if handler is creating a chaild dialog.
Returns
A commandDialog.

Definition at line 149 of file CommandDialog.cs.

CommandDialog<T> Microsoft.Bot.Builder.Dialogs.CommandDialog< T >.OnDefault< U > ( ResumeAfter< Connector.IMessageActivity handler,
ResumeAfter< U >  resultHandler = null 
)
inline

Define the default action if no match.

Template Parameters
UType of input to result handler.
Parameters
handlerHandler to call if no match.
resultHandlerOptional result handler to be called if handler is creating a chaild dialog.
Returns
A CommandDialog.

Definition at line 170 of file CommandDialog.cs.

virtual async Task Microsoft.Bot.Builder.Dialogs.CommandDialog< T >.ResultHandler< U > ( IDialogContext  context,
IAwaitable< U >  result 
)
inlinevirtual

The result handler of the command dialog passed to the child dialogs.

Template Parameters
UThe type of the result returned by the child dialog.
Parameters
contextDialog context.
resultThe result retured by the child dialog.

Definition at line 125 of file CommandDialog.cs.


The documentation for this class was generated from the following file: