简体   繁体   中英

Microsoft bot framework session timeout after user inactivity

I'm working on a scenario where the user is warned after 1 minute of inactivity and after another, 1-minute chat will auto close.

Callback is successfully invoked after 1 minute but when I'm using turnContext to send a message to user then it shows an exception that "cannot access a disposed object"

enter image description here

enter image description here

can we prevent to dispose object for some time or if there is any other solution so please help me.

Thank you!

you can't prevent the object

here you can find how to implement expire conversation Automatically Expire Conversation & download the Nuget package Automatically Expire Conversation

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM