コード例 #1
0
        //public async Task StartAsync(Activity activity)
        //{
        //    ActivityObj = activity;
        //    Message = ActivityObj.Text;
        //    if(Message.StartsWith("#>"))
        //    {
        //        await Conversation.SendAsync(activity, () => new Dialogs.RootDialog());
        //    }
        //    else
        //    {
        //        await Conversation.SendAsync(activity, () => new Dialogs.QnADialog());
        //    }
        //}

        public async Task SaveMessageAsync()
        {
            if (RequestMessage.IsUrl())
            {
                Url        _url     = new Url(Message);
                UrlManager _manager = new UrlManager();
                string     notify   = await _manager.AddUrlAsync(_url);

                await this.TalkAsync(notify);
            }
        }