Esempio n. 1
0
        public void Enqueue(BotMessage message)
        {
            lock (_queue)
            {
                _queue.Enqueue(message);

                ResolvePendingTasks();
            }
        }
Esempio n. 2
0
        public void Enqueue(Activity activity)
        {
            var text = activity.Text;

            var message = new BotMessage {
                Body = text
            };

            _queue.Enqueue(message);
        }
Esempio n. 3
0
 public void Send(BotMessage message)
 {
     _route.Send(message.Body);
 }