public void Enqueue(BotMessage message) { lock (_queue) { _queue.Enqueue(message); ResolvePendingTasks(); } }
public void Enqueue(Activity activity) { var text = activity.Text; var message = new BotMessage { Body = text }; _queue.Enqueue(message); }
public void Send(BotMessage message) { _route.Send(message.Body); }