示例#1
0
        public BotHubRoute(Activity activity)
        {
            _channelId      = activity.ChannelId;
            _conversationId = activity.Conversation.Id;
            _service        = activity.ServiceUrl;
            _serviceUri     = new Uri(activity.ServiceUrl);

            _locale     = activity.Locale;
            _botAccount = activity.Recipient;

            _botPostBack = new BotPostBack(this);
            _queue       = new BotQueue();
        }
示例#2
0
 public BotProxy(BotQueue receive, BotPostBack send)
 {
     _receive = receive;
     _send    = send;
 }
示例#3
0
 public UserActivator(string id, BotQueue receive, BotPostBack send)
 {
     _id    = id;
     _proxy = new BotProxy(receive, send);
 }