コード例 #1
0
        protected override async Task PostAsync(IActivity item, bool state, CancellationToken token)
        {
            var message = item.AsMessageActivity();

            if (message != null)
            {
                var helpDialog = dialogFactory.CreateHelpDialog();

                var interruption = helpDialog.Void <object, IMessageActivity>();

                task.Call(interruption, null);

                await task.PollAsync(token);
            }
        }