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
Describe the bug
Hi, I tried to add ShutdownRequested in OnFrameworkInitializationCompleted function, however it does not seem to work.
To Reproduce
Steps to reproduce the behavior:
publicoverrideasyncvoidOnFrameworkInitializationCompleted(){if(ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop){
...... // Some code here
desktop.ShutdownRequested +=Desktop_ShutdownRequested;
...... // Some code here
if (!string.IsNullOrWhiteSpace(Global.Settings.Cookie)&&!CookieToolkit.IsExpired(Global.Settings.Cookie)){
desktop.MainWindow = Global.PageToolkit.GetMainPage();}else{
desktop.MainWindow = Global.PageToolkit.GetLoginPage();}}base.OnFrameworkInitializationCompleted();}privatevoidDesktop_ShutdownRequested(objectsender,ShutdownRequestedEventArgse){
LogToolkit.Error("Hello World");}
Expected behavior
LogToolkit.Error("Hello World");
was executed
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: macOS Big Sur
Version: 10.999-cibuild0017974-beta
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
Hi, I tried to add
ShutdownRequested
inOnFrameworkInitializationCompleted
function, however it does not seem to work.To Reproduce
Steps to reproduce the behavior:
Expected behavior
was executed
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: