public ActivityExecutionResult Execute(IExecuteContext context) { var mess = new RegisterBotProcessingMessage(BotEngine, BotKey) { ChatProcessIdentity = ChatProcessIdentity }; context.SendMessage(mess); return(ActivityExecutionResult.Complete); }
public ActivityExecutionResult Execute(IExecuteContext context) { if (context.IsContinue) { return(ActivityExecutionResult.Complete); } var book = context.SetBookmark(); var ch = Guid.Parse(context.Resolve(ChatId)); var mess = new WaitMessageMessage(ch) { BookmarkId = book, BotEngine = BotEngine, BotKey = BotKey }; context.SendMessage(mess); return(ActivityExecutionResult.Idle); }