Example #1
0
        public SimpleShellBot(BotSessionStorage storage, IRecognizer recognizer)
            : base(storage, recognizer)
        {
            var builder = new BotBuilder(this);

            builder.TypedInstance = builder;

            Builder = builder.TypedInstance;
        }
Example #2
0
 public SimpleShellBot(BotSessionStorage storage)
     : this(storage, null)
 {
 }
Example #3
0
 public TypeBindBot(BotSessionStorage storage, IRecognizer recognizer)
 {
     Storage    = storage;
     Recognizer = recognizer;
     _dialogs   = new DialogSet(storage?.ConversationDialogState);
 }
Example #4
0
 public TypeBindBot(BotSessionStorage storage)
     : this(storage, null)
 {
 }
Example #5
0
 public TurnEventArgs(BotSessionStorage storage, ITurnContext turnContext, CancellationToken cancellationToken)
 {
     Storage           = storage;
     TurnContext       = turnContext;
     CancellationToken = cancellationToken;
 }
Example #6
0
 public TurnEventArgs(BotSessionStorage storage, DialogContext dialogContext, CancellationToken cancellationToken)
     : this(storage, dialogContext?.Context, cancellationToken)
 {
     DialogContext = dialogContext;
 }