more settings work

This commit is contained in:
TheXamlGuy
2024-02-11 22:18:40 +00:00
parent 812556f8b0
commit 6e738becd4
33 changed files with 152 additions and 80 deletions
+5 -3
View File
@@ -2,14 +2,16 @@
namespace Hyperbar.Widget;
public class WidgetHostHandler :
public class WidgetHostHandler(IWidgetHostCollection widgetHosts) :
INotificationHandler<Create<IWidgetHost>>
{
public async Task Handle(Create<IWidgetHost> notification,
public async Task Handle(Create<IWidgetHost> args,
CancellationToken cancellationToken)
{
if (notification.Value is IWidgetHost host)
if (args.Value is IWidgetHost host)
{
widgetHosts.Add(host);
if (host.Services.GetServices<IInitializer>() is
IEnumerable<IInitializer> initializations)
{