Skip to content

Release 1.0.9

Choose a tag to compare

@bvdcode bvdcode released this 28 Jul 22:06
· 73 commits to main since this release
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.