You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add graceful shutdown using IHostApplicationLifetime
Introduce a mechanism to gracefully stop the application by leveraging the IHostApplicationLifetime interface.
- In BotApp.cs, call StopApplication() on IHostApplicationLifetime after logging that the bot has stopped.
- In BotBuilder.cs, reorganize using directives and register IHostApplicationLifetime as a singleton service.
- Add HostApplicationLifetime.cs to implement IHostApplicationLifetime, providing lifecycle event tokens and a method to stop the application.