Adding setting for automated session serialization on shutdown

- adding automated session serialization on application ending (console or shutdown/logoff)
- adding console class for managing system events
This commit is contained in:
FlorianDahn
2020-04-21 21:45:21 +02:00
parent eebb5cb6f5
commit efe5fef7d0
3 changed files with 79 additions and 0 deletions
+4
View File
@@ -24,6 +24,10 @@ namespace TelegramBotBase.Enums
SkipAllMessages = 3,
/// <summary>
/// Does stick to the console event handler and safes all sessions on exit.
/// </summary>
SafeSessionsOnConsoleExit = 4