|
|
@ -334,7 +334,10 @@ public sealed class App : Application |
|
|
|
services.AddSingleton<IPyRunner, PyRunner>(); |
|
|
|
services.AddSingleton<IPyRunner, PyRunner>(); |
|
|
|
services.AddSingleton<IUpdateHelper, UpdateHelper>(); |
|
|
|
services.AddSingleton<IUpdateHelper, UpdateHelper>(); |
|
|
|
services.AddSingleton<INavigationService, NavigationService>(); |
|
|
|
services.AddSingleton<INavigationService, NavigationService>(); |
|
|
|
|
|
|
|
|
|
|
|
services.AddSingleton<ITrackedDownloadService, TrackedDownloadService>(); |
|
|
|
services.AddSingleton<ITrackedDownloadService, TrackedDownloadService>(); |
|
|
|
|
|
|
|
services.AddSingleton<IDisposable>(provider => |
|
|
|
|
|
|
|
(IDisposable) provider.GetRequiredService<ITrackedDownloadService>()); |
|
|
|
|
|
|
|
|
|
|
|
// Rich presence |
|
|
|
// Rich presence |
|
|
|
services.AddSingleton<IDiscordRichPresenceService, DiscordRichPresenceService>(); |
|
|
|
services.AddSingleton<IDiscordRichPresenceService, DiscordRichPresenceService>(); |
|
|
|