Cleanup old version service for maintenance.

This commit is contained in:
Burak Kaan Köse
2026-04-05 15:19:14 +02:00
parent ac78cf2b78
commit 32d677025d
5 changed files with 94 additions and 7 deletions
+4
View File
@@ -302,6 +302,7 @@ public partial class App : WinoApplication,
services.AddSingleton<INavigationService, NavigationService>();
services.AddSingleton<IMailDialogService, DialogService>();
services.AddSingleton<IAiActionOptionsService, AiActionOptionsService>();
services.AddSingleton<ReleaseLocalAccountDataCleanupService>();
services.AddTransient<IProviderService, ProviderService>();
services.AddSingleton<IAuthenticatorConfig, MailAuthenticatorConfiguration>();
services.AddSingleton<IAccountCalendarStateService, AccountCalendarStateService>();
@@ -385,6 +386,9 @@ public partial class App : WinoApplication,
// Always register notification callbacks.
TryRegisterAppNotifications();
await Services.GetRequiredService<ReleaseLocalAccountDataCleanupService>()
.RunIfNeededAsync();
// Initialize required services regardless of launch activation type.
// All activation scenarios require these services to be ready.
// Note: Theme service is initialized separately after window creation.