Initilize widget setting without starting its host

This commit is contained in:
TheXamlGuy
2024-01-31 22:33:23 +00:00
parent a2a5591502
commit 6dbe2db584
25 changed files with 125 additions and 83 deletions
@@ -15,7 +15,7 @@ public class MediaControllerWidget :
.UseViewModelTemplate<MediaControllerWidgetViewModel, MediaControllerWidgetView>()
.ConfigureServices(args =>
{
args.AddSingleton<IInitializer, MediaControllerManager>()
args.AddHostedService<MediaControllerService>()
.AddTransient<IServiceScopeFactory<MediaController>, ServiceScopeFactory<MediaController>>()
.AddTransient<IServiceScopeProvider<MediaController>, ServiceScopeProvider<MediaController>>()
.AddCache<MediaController, IServiceScope>()